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

Allow running just non-fuzzed tests #589

Open
cllns opened this issue Apr 29, 2022 · 1 comment
Open

Allow running just non-fuzzed tests #589

cllns opened this issue Apr 29, 2022 · 1 comment

Comments

@cllns
Copy link

cllns commented Apr 29, 2022

I have a suite of fuzzed and non-fuzzed tests. Sometimes I'd like to be able to run just the non-fuzzed tests, since they're much much faster (and the fuzzing floods the terminal with tons of noisy failures, see: #327)

A simple way to do this would be to allow elm-test --fuzz 0. Right now it says:

error: option '--fuzz <int>' argument '0' is invalid. Expected at least 1.

If this is implemented, there should be a conspicuous notice that all fuzz tests are skipped.

Another option would be calling the CLI arg --skip-fuzz

@lydell lydell changed the title Allow --fuzz 0 Allow running just non-fuzzed tests Apr 29, 2022
@mpizenberg
Copy link
Contributor

As a side note, one can put their fuzz tests and normal tests in two different directories, and pass the directory they want as a CLI argument. This may need a bit of code shuffling around but it should solve your issue.

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

No branches or pull requests

2 participants