Skip to content

Run unit tests only once#77

Merged
Bodigrim merged 1 commit intohaskell:masterfrom
sergv:master
May 31, 2025
Merged

Run unit tests only once#77
Bodigrim merged 1 commit intohaskell:masterfrom
sergv:master

Conversation

@sergv
Copy link
Copy Markdown
Contributor

@sergv sergv commented May 31, 2025

By default they’re run 100 times which gives false impression that there’s some sort of property being tested.

NB tag for 0.7.1.0 version is missing from the git repository.

Howerever there are surprisingly no runtime savings from running tests only once - they test that particular expressions independent of function's inputs evaluate to known result which seem to get lifted by GHC to the toplevel and thus will evaluate only once when QuickCheck runs them repeatedly.

Still it seems reasonable to make QuickCheck run unit tests only once.

By default they’re run 100 times which gives false impression that
there’s some sort of property being tested.
@Bodigrim Bodigrim merged commit b14dced into haskell:master May 31, 2025
33 checks passed
@Bodigrim
Copy link
Copy Markdown
Contributor

Thanks!

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