elm-verify-examples icon indicating copy to clipboard operation
elm-verify-examples copied to clipboard

Confusing behavior of --elm-test option

Open tad-lispy opened this issue 6 years ago • 1 comments

Hey! Thanks for this program. It's very useful and I appreciate your effort in creating and maintaining it.

The problem

If I pass a wrong value to --elm-test option the program silently falls back to default elm-test. I believe it's a wrong design choice. I would expect a meaningful error, like:

$ elm-verify-examples --elm-test typoz-here
Error: no such file or directory: typoz-here

The problem is caused here: https://github.com/stoeffel/elm-verify-examples/blob/master/bin/runner.js#L93-L96

Would you be interested in a PR addressing this?

Use case:

I run into this while trying to use your program with elm-coverage. I tried:

elm-verify-examples --elm-test elm-coverage

and it just ran elm-test. I tried:

elm-verify-examples --elm-test 'npx elm-coverage'

Same thing. At this point I looked into source code and found what's going on.

tad-lispy avatar Apr 01 '19 06:04 tad-lispy

👍 PRs welcome

gampleman avatar Oct 20 '23 12:10 gampleman