Skip to content

Collapse testsets #77

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

Merged
merged 8 commits into from
May 23, 2022
Merged

Collapse testsets #77

merged 8 commits into from
May 23, 2022

Conversation

cmcaine
Copy link
Contributor

@cmcaine cmcaine commented May 23, 2022

Fixes #53.

Please don't squash these commits: there are quite a few changes and the atomic commits make it easier to understand what's going on + the changes to the fixtures between 154e5a9 and c3b5396 make it easy to see what the effect of this PR is without having to run the tests yourself.

Changes:

a7b986f (Colin Caine, 53 seconds ago)
Report test_code for passing tests

c3b5396 (Colin Caine, 10 minutes ago)
Report fewer results

Multiple passing results are collapsed into a single report. At most 5
failing results are reported per testset.

154e5a9 (Colin Caine, 5 minutes ago)
Add fixtures to test collapsing behaviour

2c7d29f (Colin Caine, 6 minutes ago)
Update error messages in fixtures

cmcaine added 6 commits May 23, 2022 02:30
Multiple passing results are collapsed into a single report.
At most 5 failing results are reported per testset.
This reverts commit 2c7d29f.

These error messages are right on my machine, but maybe not on the CI
@cmcaine cmcaine mentioned this pull request May 23, 2022
@cmcaine cmcaine force-pushed the collapse-testsets branch from a8ca0e5 to 201bc23 Compare May 23, 2022 03:52
Copy link
Contributor

@SaschaMann SaschaMann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! I've mainly looked at the fixtures and they look way better now.

Should there be a warning in the failure message that only MAX_REPORTED_FAILURES_PER_TESTSET are shown if that threshold is hit?

@@ -61,11 +61,23 @@ jobs:

const tests = split(ENV["TESTS"], ",")

# Shorten the error messages so we don't need to care about specific paths, file numbers, etc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to clarify, this only affects CI, not the end result on the website?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it affects a local run of the tests with pkg, too. But in any case, doesn't affect the website. Just got tired of the fixtures changing because of path differences and so on.

@SaschaMann SaschaMann added the x:rep/massive Massive amount of reputation label May 23, 2022
@cmcaine
Copy link
Contributor Author

cmcaine commented May 23, 2022

Thanks for the review! I couldn't think of a nice way to show a warning and I wasn't convinced it would be very helpful, so I think we should merge this without adding one. Can always do another PR if it seems like a good idea.

I'll rebase and merge this later today or tomorrow if you've no objections :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:rep/massive Massive amount of reputation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Too many tests in rational-numbers?
2 participants