Problems when running JUnit tests with a custom runner Follow
Hello
I'm developing a JUnit runner called HavaRunner (https://github.com/havarunner/havarunner).
When I run multiple @RunWith(HavaRunner.class) annotated classes in IDEA, I see the following message in my IDEA concole:
Wrong test finished. Last started: [] stopped: myTestName(com.github.myapp.MyUITest$MyTestInStaticInnerClass); class org.junit.runner.Description
Any idea what could cause this?
The message seems to come from within IDEA, since I cannot find the string "Wrong test finished" in any of my dependencies.
Please sign in to leave a comment.
I found some relevant discussion here: https://github.com/cucumber/cucumber-jvm/issues/73.
Lucene developers seem to have experienced the same issue: http://www.gossamer-threads.com/lists/lucene/java-dev/153369 and https://www.google.fi/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDEQFjAA&url=http%3A%2F%2Fmail-archives.apache.org%2Fmod_mbox%2Flucene-dev%2F201204.mbox%2F%253C6C78E97C707B5B4C8CC61D44F87545861CED9F%40SUEX10-mbx-03.ad.syr.edu%253E&ei=8b9CUv2aCsHI4ATGo4CYCw&usg=AFQjCNF4NzTP90BQFnGkUdQOeui7J757rg.
This commit solved the problem: https://github.com/havarunner/havarunner/commit/e56eb98f69e8222d9839e394e282db9a3c8e1890.
I was invoking the ignore API of JUnit. The correct solution was to invoke the assumption-failed API.
All in all, the problem was not caused by Intellij IDEA.