-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fail on zero tests found #662
Copy link
Copy link
Closed
Labels
type: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Metadata
Metadata
Assignees
Labels
type: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Type
Fields
Give feedbackNo fields configured for issues without a type.
Originally reported by: Boris Rybalkin (BitBucket: cyberb, GitHub: cyberb)
Sometimes it is critical to fail when py.test does not find any test. This may happen when you are accidentally running in the wrong directory on the build agent and may lead to the impression that everything is ok.
Something like:
py.test --fail-on-empy
EDIT: fail by default would be even better