Need documentation on running the tests
How do I set up the environment?
Re: Need documentation on running the tests
Reply #1 –
Are you wanting to run the phpunit tests locally?
Re: Need documentation on running the tests
Reply #3 –
yup. i just need to know how to set the environment.
Re: Need documentation on running the tests
Reply #4 –
I use a vagrant box provisioned with a fresh Elkarte install (since the tests mess with the db you need a clean install). I've provisioned it with Ubuntu so all the paths are basically the same as Travis etc.
In that vagrant box I of course have installed and run composer so all the phpunit dependencies are in place.
Then I just run phpunit from the command line from that box.
I don't test against more than one db or version of php, once I have a test running I abuse Travis for the full spectrum of test environments.