Skip to content

No documentation on exit code 5 #2239

@amueller

Description

@amueller

pytest fails if no tests were run and returns exit code 5.
I can't seem to find any documentation on this on the website.

I had students run pytest on travis, and CI failed because of the non-zero exit code, but they couldn't figure out what was going on. I think it would be great if either or both of the following happened:

a) The error message says it's failing because there are no tests. Currently it says "0 tests run" but it's unclear that this would cause a failure.

b) there is some documentation online that explains what "The command "py.test" exited with 5" means.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueeasy issue that is friendly to new contributortype: docsdocumentation improvement, missing or needing clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions