History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-14547
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Axel Guicking
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

JUnit4: Configuration "All in package" does not execute all tests

Created: 24 Jan 07 16:38   Updated: 06 Nov 08 23:24
Component/s: Unit Testing. JUnit
Fix Version/s: Undefined

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: WinXP SP2, Idea is running with JDK 1.6

Build: 6,656
Severity: Medium


 Description  « Hide
When I setup a JUnit configuration (using Junit4) to execute all tests in a package not all tests are executed. However, they seem to be "collected" correctly, since in the run console there is written e.g. "Done: 2 of 4(1,356 s)." Four is the correct number of test methods (those annotated with @Test) - however only one class containing two test methods are executed.

Down in the logging output there appears the following line:

Wrong test finished. Last started: Method Adapter: class de.digimod.object.TestCreateObject#testCreateObject2 stopped: Dummyclass com.intellij.rt.junit4.Junit4ClassSuite$1false

I'm running Idea with JDK 1.6 (I now, it's not (yet) supported, but anyway, this might be interesting for you

BTW (really nitpicking): The String in the run console "Done: 2 of 4(1,356 s)" looks better if the opening parenthesis is preceded by a blank...



 All   Comments   Work Log   Change History      Sort Order:
James Reynolds - 26 Feb 07 22:56
I experienced the same error and found that I could eliminate it by removing an offending line from the @BeforeClass method. The problem may stem from my code - nevertheless - the "wrong test finished" message was not very specific.