Issue 60 in vogar: Vogar does not run JUnit 3 tests correctly

3 views
Skip to first unread message

vo...@googlecode.com

unread,
Feb 25, 2014, 10:39:23 AM2/25/14
to voga...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 60 by paulduf...@google.com: Vogar does not run JUnit 3 tests
correctly
http://code.google.com/p/vogar/issues/detail?id=60

The Junit3.VogarJUnitTest does not run JUnit 3 test cases correctly. A
JUnit 3 test case should be run by calling the runBare() method, or the
run(TestResult) method which itself calls the runBare() method. The
runBare() method then calls setUp(), runTest() and tearDown() itself. Vogar
uses reflection to access those methods which are all protected, makes them
accessible and the invokes them itself, effectively duplicating the
runBare() method.

Unfortunately, this means that overriding runBare() does not work as the
method never gets called. This is a potential source of incompatibility
between Vogar and other tests runners. While that is not very common it can
be useful, e.g. to get access to the test failure exception in a general
way from a base class.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Reply all
Reply to author
Forward
0 new messages