Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confusing output from --testdox for empty test class #1737

Closed
theseer opened this issue Jun 3, 2015 · 0 comments
Closed

Confusing output from --testdox for empty test class #1737

theseer opened this issue Jun 3, 2015 · 0 comments

Comments

@theseer
Copy link
Collaborator

theseer commented Jun 3, 2015

When running PHPUnit with --testdox, test classes that do not contain any actual tests (yet), cause a rather confusing, not helpful output:

class SampleTest extends PHPUnit_Framework_Testcase {}
theseer@nyda ~/testdox $ phpunit --testdox SampleTest.php 
PHPUnit 4.6.9 by Sebastian Bergmann and contributors.

PHPUnit_Framework_Warning
 [ ] Warning

This gets even more confusing when there are multiple empty test classes as they all get mangled into one output:

theseer@nyda ~/testdox $ phpunit .
PHPUnit 4.6.9 by Sebastian Bergmann and contributors.

FF

Time: 154 ms, Memory: 13.25Mb

There were 2 failures:

1) Warning
No tests found in class "OtherTest".

2) Warning
No tests found in class "SampleTest".

FAILURES!
Tests: 2, Assertions: 0, Failures: 2.
theseer@nyda ~/testdox $ phpunit --testdox .
PHPUnit 4.6.9 by Sebastian Bergmann and contributors.

PHPUnit_Framework_Warning
 [ ] Warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant