Announcement Announcement Module
Collapse
No announcement yet.
Unit Test Grails Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unit Test Grails

    I have set up a JUnit Run Configuration using "test/unit" in the "run all test..." box

    I get the following for each class it finds...

    Code:
    java.lang.ClassNotFoundException: *Tests
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass(RemoteTestRunner.java:693)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses(RemoteTestRunner.java:429)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

  • #2
    right clicking on test/unit runs the tests, but ...

    all the tests show green. console says:

    log4j:WARN No appenders could be found for logger (org.codehaus.groovy.grails.web.converters.configu ration.ConvertersConfigurationInitializer).
    log4j:WARN Please initialize the log4j system properly.
    ERROR (p.TekEvent): mock in unit controller test
    ERROR (p.TekEvent): mock in unit test

    grails test-app -unit runs fine from the command line.

    thanks

    Comment

    Working...
    X