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

test: Set nonzero exitcode when tests fail #116

Merged
merged 5 commits into from
Feb 17, 2024

Conversation

414owen
Copy link
Contributor

@414owen 414owen commented Dec 26, 2023

IMPORTANT: Branch is based on os/fix-read-after-show-test, so please merge #117 before this.

  • Create a single list of quickcheck properties
  • Test the result of the quickcehck run
  • Exit with appropriate status code

Previously, cabal test would print PASS and exit with exitcode 0, even when a test was failing.

* Create a single list of quickcheck properties
* Test the result of the quickcehck run
* Exit with appropriate status code
tests/Main.hs Outdated Show resolved Hide resolved
tests/Main.hs Show resolved Hide resolved
tests/Main.hs Outdated Show resolved Hide resolved
@spl spl merged commit f2289f7 into spl:main Feb 17, 2024
17 checks passed
@spl
Copy link
Owner

spl commented Feb 17, 2024

Hmm, that's interesting. I'm sure I was seeing failures when I worked on tests years ago. 🤦🏼 Ah well, thanks again! 🙏🏼

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

Successfully merging this pull request may close these issues.

2 participants