rtfeldman / node-test-runner

Runs elm-test suites from Node.js. Get it with npm install -g elm-test
BSD 3-Clause "New" or "Revised" License
132 stars 79 forks source link

Allow running just non-fuzzed tests #589

Open cllns opened 2 years ago

cllns commented 2 years ago

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: https://github.com/rtfeldman/node-test-runner/issues/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

mpizenberg commented 2 years ago

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.