junit.framework.AssertionFailedError: No tests found

We've got the following error:
junit.framework.AssertionFailedError: No tests found in
gameMechanics.elements.stat.StatTest
at junit.framework.Assert.fail(Assert.java:47)
at junit.framework.TestSuite$1.runTest(TestSuite.java:93)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:120)
at junit.framework.TestSuite.runTest(TestSuite.java:228)
at junit.framework.TestSuite.run(TestSuite.java:223)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:546)


though this class does contain tests. How to fix it?
We use junit 4.1 with annotated tests.

Vitaly Berov

1 comment
Comment actions Permalink

Vitaly,

Could you please file a Jira issue with build agent logs.
Please find instructions on how to debug problems at:

http://www.jetbrains.net/confluence/display/TW/HowtoDebug+problems

Regards,
KIR

0

Please sign in to leave a comment.