-
problem in adding listener to junit TestResult
Hi,
I am invoking junit tests programmatically. Gotto generate the reports as well. For that purpose I have added XMLJUnitResultFormatter (from ant-junit) as a listener to the TestResult. i get the following runtime error:
java.lang.NoClassDefFoundError: junit/framework/TestListener
at the statement:
XMLJUnitResultFormatter resultFormatter = new XMLJUnitResultFormatter();
However following statement runs fine:
TestListener listener = new TestRunner(); //both are junit framework classes and are accessible.
This means that the problem is when ant-junit class XMLJUnitResultFormatter tries to access TestListener.
Any ideas/suggestions?
Cheers
yogesh
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|