example-wordpress-composer icon indicating copy to clipboard operation
example-wordpress-composer copied to clipboard

Unit Tests

Open ataylorme opened this issue 8 years ago • 1 comments

@stevector would argue that unit tests belong in the plugins containing the code being tested. He thinks Behat tests are different in that by their nature they are testing the whole system.

While I concur having an example unit test and having PHP Unit ready to go out of the box provides value. We can document that unit tests should go in individual plugins/themes.

ataylorme avatar Aug 01 '17 14:08 ataylorme

Even though I originally setup the unit tests this way on the old repo I agree with @stevector. This is where terminus project setup would really be helpful if you could define plugins/themes that need unit tests.

Would you be opposed to create an example plugin that does nothing other than a unit test? I think leaving them in the root would give some developers the wrong impression of testing the whole system.

tobeycodes avatar Aug 01 '17 18:08 tobeycodes