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

Support --fail-if-no-tests flag #2684

Open
mpkorstanje opened this issue Jan 14, 2023 · 1 comment
Open

Support --fail-if-no-tests flag #2684

mpkorstanje opened this issue Jan 14, 2023 · 1 comment
Labels
⚡ enhancement Request for new functionality
Milestone

Comments

@mpkorstanje
Copy link
Contributor

🤔 What's the problem you're trying to solve?

While the empty test suite passes by definition, when running tests in CI all tests may for one reason or another be filtered out. This may be undesirable when the expectation there is at least one test executed.

✨ What's your proposed solution?

Add an --fail-if-no-tests option for the CLI and exit with 2 if no pickles were executed.

📚 Any additional context?

@mpkorstanje mpkorstanje added the ⚡ enhancement Request for new functionality label Jan 14, 2023
@mpkorstanje mpkorstanje changed the title Exit with Support --fail-if-no-tests flag Jan 14, 2023
@mpkorstanje
Copy link
Contributor Author

Actually kinda hard with the current design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚡ enhancement Request for new functionality
Projects
None yet
Development

No branches or pull requests

1 participant