[Coin-discuss] unit test

Matthew Galati magh at lehigh.edu
Sat Oct 3 21:25:39 EDT 2009


Never mind. I figured it out. Makefile is smart enough to just stop and
break if a non-zero return code is encountered by any shell call. So, all I
need to do is have my unit test return non-zero if an exception is caught.


 I am setting up my unit test for a new COIN project to run when 'make test'
> is run. How do folks deal with test failures? My code catches exceptions and
> throws an error to the screen - but the test just proceeds from that point.
> In fact, my first test might fail then the next few pass - and the only
> indication of the failure is if the user looks for the phrase "COIN
> Exception" in the make log. How do folks usually deal with this so that
> failed tests don't go un-noticed?
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/coin-discuss/attachments/20091003/ce8156dc/attachment.html>


More information about the Coin-discuss mailing list