Skip to main content
Topic: Need documentation on running the tests (Read 2160 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Need documentation on running the tests

How do I set up the environment?
LiveGallery - Simple gallery addon for ElkArte

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 #2

 emanuele runs!
Bugs creator.
Features destroyer.
Template killer.

Re: Need documentation on running the tests

Reply #3

yup. i just need to know how to set the environment.
LiveGallery - Simple gallery addon for ElkArte

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.