lehmannro / assert.sh

bash unit testing framework
GNU Lesser General Public License v3.0
486 stars 57 forks source link

"assert" ignores exit code and standard error output. #11

Open kareman opened 9 years ago

kareman commented 9 years ago

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.

lehmannro commented 8 years ago

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.