You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2016/02/05 18:20:35 UTC
[Bug 58976] New: Unwanted fallback to Junit 3 Testrunner
https://bz.apache.org/bugzilla/show_bug.cgi?id=58976
Bug ID: 58976
Summary: Unwanted fallback to Junit 3 Testrunner
Product: Ant
Version: 1.9.6
Hardware: PC
Status: NEW
Severity: critical
Priority: P2
Component: AntUnit
Assignee: notifications@ant.apache.org
Reporter: jughead@gmx.net
There's a bug in the latest ant-junit version 1.9.6. In the JUnitTestRunner#run
method
there is tried to load the class CustomJUnit4TestAdapterCache but it does not
exist. I
think it has been removed in a previous version and someone forgot to update
the run
method accordingly.
Here's the relevant line from the JUnitTestRunner#run method:
--java
try{
junit4TestAdapterCacheClass = Class.forName(
"org.apache.tools.ant.taskdefs.optional.junit.CustomJUnit4TestAdapterCache");
} catch (final ClassNotFoundException e) {
// OK, fall back to JUnit 3.
}
--
The implication is that every test is executed by the junit 3 runner. This lead
to
ant telling me: no tests found.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58976] Unwanted fallback to Junit 3 Testrunner
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58976
--- Comment #4 from jughead@gmx.net ---
Ok, thanks for clarification.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58976] Unwanted fallback to Junit 3 Testrunner
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58976
jughead@gmx.net changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |---
Status|RESOLVED |REOPENED
--- Comment #2 from jughead@gmx.net ---
I used ivy for the checkout and it fetched the jar from:
http://central.maven.org/maven2/org/apache/ant/ant-junit/1.9.6/ant-junit-1.9.6.jar
This version does not include the CustomJUnit4TestAdapterCache.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58976] Unwanted fallback to Junit 3 Testrunner
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58976
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Stefan Bodewig <bo...@apache.org> ---
It doesn't and it shouldn't :-)
ant-junit-x.jar contains support for JUnit3 and the shared classes used to
support JUnit3 and JUnit4. ant-junit4-x.jar contains the classes needed to
support JUNit4 on top of that.
You must tell Ivy to also download ant-junit4-1.9.6.jar
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58976] Unwanted fallback to Junit 3 Testrunner
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58976
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Component|AntUnit |Optional Tasks
OS| |All
Status|NEW |RESOLVED
--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
hmm:
https://git-wip-us.apache.org/repos/asf?p=ant.git;a=blob;f=src/main/org/apache/tools/ant/taskdefs/optional/junit/CustomJUnit4TestAdapterCache.java;h=8ad40dd61f9e7b42b1de83da2bcc9669ffb18928;hb=7046631e9a490e203f61b419a272aed0d428506c
the class is certainly still there, it is part of the ant-junit4.jar.
--
You are receiving this mail because:
You are the assignee for the bug.