Skip to content

fail on zero tests found #662

@pytestbot

Description

@pytestbot

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


Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions