Hi App devs,

last week we did a little change, that makes database depending tests fail with the following error:

   Your test case is not allowed to access the database.


The idea behind that is, that you are forced to correctly specify which tests require database interaction and which tests don't. With phpunit's group settings you can mark a file as database depending,
just add "@group DB" into the doc block of the test:
https://github.com/owncloud/activity/pull/438/files#diff-faa57747b4b645ad449d2b8c8650b8b8

Then in theory we can only run those tests against the different databases, that actually use it. For apps that advantage might be negligible, but in core we can save multiple minutes with that on each test execution. With hundreds of executions per day, that brings us in a better shape
and faster overall responses.

If you want to only execute database tests, you would adjust your call from

   phpunit --configuration phpunit.xml

to

   phpunit --configuration phpunit.xml --group DB


Hope that helps, sorry for the late note, instead of a heads up before the fix.

cheers
Joas aka. nickvergessen

_______________________________________________
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel

Reply via email to