Is there anything in Junit that allows you to say "report that this test passed or failed" but don't include it as a fatal failure? I'm curious how I could implement this....
john: the Google C++ Testing Framework supports this idea, but jUnit does not (to my knowledge, I haven't looked at jUnit in close detail since 4.0 came out).
The most important thing is to look at the test case in terms of ROI. You get good ROI when the test case prevents errors from going unnoticed and when the test case has a high percentage of finding errors. As such, its best to start with system tests, then go down to unit tests.
Is there anything in Junit that allows you to say "report that this test passed or failed" but don't include it as a fatal failure? I'm curious how I could implement this....
ReplyDeleteYou can see what we do in the source -- we write a test that just asserts that at least x of y images decoded.
ReplyDeletehttp://code.google.com/p/zxing/source/browse/trunk/core/test/src/com/google/zxing/common/AbstractBlackBoxTestCase.java
john: the Google C++ Testing Framework supports this idea, but jUnit does not (to my knowledge, I haven't looked at jUnit in close detail since 4.0 came out).
ReplyDeleteThe most important thing is to look at the test case in terms of ROI. You get good ROI when the test case prevents errors from going unnoticed and when the test case has a high percentage of finding errors. As such, its best to start with system tests, then go down to unit tests.
ReplyDeleteExplore, Learn, Review: (programming languages)
http://www.codesplunk.com