assert.sh icon indicating copy to clipboard operation
assert.sh copied to clipboard

"assert" ignores exit code and standard error output.

Open kareman opened this issue 11 years ago • 1 comments

Is it possible to implement a mode which makes any unit test fail if it outputs anything to standard error or has an exit code different from 0?

An excellent project by the way, it comes in very handy.

kareman avatar Nov 26 '14 20:11 kareman

Good suggestion, I think the non-zero exit code in assert is straight-forward. For assert_raises I'm not so sure. Maybe as a flag if it's not too convoluted an implementation.

lehmannro avatar Jan 07 '16 13:01 lehmannro