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

Improve defer-failures #107

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Improve defer-failures #107

wants to merge 7 commits into from

Conversation

sellout
Copy link
Member

@sellout sellout commented Feb 8, 2024

defer-failures now preserves the original error message, and we can check that message in test cases. There is no longer any need to disable defer-failures (or jump through the other hoops previously listed in the README) in order to debug test failures.

This also enables us to address #45.

Previously, all deferred failures had the same generic error message,
and we could only see the real failure by removing `defer-failures` and
performing other steps that were described in the README. Now we
preserve the real message and there is no reason to disable
`defer-failures` during testing.
Expected failure tests now only succeed if the error message matches what we expect.

This also enables us to address #45 down the road.
@sellout
Copy link
Member Author

sellout commented Feb 8, 2024

The formatter failures are annoying – despite them being in Nix, I can’t replicate them locally on the same architectures, and the same checks are passing on aarch64-*.

Nevermind – apparently this was a transient failure.

Now that we can debug property tests with `defer-failures`, we can also run the tests in parallel,
which is faster.`
It hasn’t been needed since GHC 8.4 support was removed (where it allowed us to centralize `CPP`
usage). So now just declare the `TestCategory` directly everywhere.
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.

1 participant