You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I just run tests of group foo, the bar test is correctly skipped:
$ phpunit --group foo .
PHPUnit 3.5.14 by Sebastian Bergmann.
.
Time: 0 seconds, Memory: 3.75Mb
OK (1 test, 1 assertion)
When I do the reverse and exclude group bar instead of just including group foo, I get a warning about BarTest::testBar even though I want it excluded:
$ phpunit --exclude-group bar .
PHPUnit 3.5.14 by Sebastian Bergmann.
F.
Time: 0 seconds, Memory: 3.75Mb
There was 1 failure:
1) Warning
No tests found in suite "BarTest::testBar".
FAILURES!
Tests: 2, Assertions: 1, Failures: 1.
When the dataProvider is not empty, group exclusion works correctly. Here is what happens when I modify BarTest::spit to return a simple, 1-row dataset:
$ phpunit --exclude-group bar .
PHPUnit 3.5.14 by Sebastian Bergmann.
.
Time: 1 second, Memory: 3.75Mb
OK (1 test, 1 assertion)
I expect that BarTest is always excluded, even when the dataProvider happens to be empty. In fact, the enrire reason I am trying to exclude it is because I know beforehand that it will be empty!
The text was updated successfully, but these errors were encountered:
When a test has an empty dataProvider, it does not seem possible to exclude it based on the group.
Here is the same test code I used for issue #301:
Or: https://gist.github.com/1089631
When I just run tests of group foo, the bar test is correctly skipped:
When I do the reverse and exclude group bar instead of just including group foo, I get a warning about
BarTest::testBar
even though I want it excluded:When the dataProvider is not empty, group exclusion works correctly. Here is what happens when I modify
BarTest::spit
to return a simple, 1-row dataset:I expect that
BarTest
is always excluded, even when the dataProvider happens to be empty. In fact, the enrire reason I am trying to exclude it is because I know beforehand that it will be empty!The text was updated successfully, but these errors were encountered: