Open ghost opened 8 years ago
Generally it seems advisable to leave some error codes for errors signaled by lein-midje
itself, like invalid command line flags, missing config files, or compilation errors.
Are you suggesting that (~exit-fn (min 255 failures#)))))
should use 124 instead?
Yes, at least. But I think it would be even better if 1 would mean "test failed" and 2,3,4,... would mean "compilation error", "missing config file", "invalid command line flag" and so on. This would allow CI scripts to distinguish a completely broken test / program invocation from a failed test.
In
src/leiningen/midje.clj
,make-load-facts-form
limits the error code to 255, which is unsafe as it might clash with error codes reserved by the shell - see e.g.man 1 bash
: