IDEA13 "Class not found:" when running an ordinary grails unit test
Hi,
I am using IntelliJ 13.0.1
I have a simple unit test in Grails.
@TestFor(Verse)
class VerseTests {
void testSomething() {
fail "Implement me"
}
}
When I run it as a JUnit test it fails with error message
Class not found: "VerseTests"
I can run it as a grails test but I want to run it with Junit, it's faster. I am pretty sure that I have managed to run grails unit tests with JUnit after upgrading to IDEA13.
Thx /Lasse
Please sign in to leave a comment.
On Mac OsX 10.9.1 by the way.
Also experiencing this issue. Any resolution?
Looks very similar to http://youtrack.jetbrains.com/issue/IDEA-94269.
+1
I am also experiencing the same problem. It is a Grails project where pom=true is set in BuildConfig.groovy.
Also running IDEA 13.1.3 on OS X 10.9.3 with JDK 1.7.0_40
When I run IDEA 13.1.3 an error seems to occur. it was interrupted for a long time
Donkey Kong
Thanks for bringing this up, I'm facing a similar issue with Grails unit tests not recognizing some classes in IntelliJ. It's helpful to know others have run into this too. Hoping for more clarity on the best setup or workaround.
TYPO3-Agentur
TYPO3 Barrierefreiheit Testen
I’ve seen similar “class not found” issues in IntelliJ with Grails tests, often it comes down to IDE configuration or how tests are detected versus running them via
grails test-appfrom the command lineIt’s interesting how small setup differences can affect visibility, just like how presentation matters in other areas too. For example, even niche products stand out better when clearly structured and targeted: Gothic Skull Ring
Thanks for raising this, helpful discussion for anyone working with older Grails setups.