Details
Description
Running "grails test-app integration" yields ClassNotFoundException for ClassName when ClassName is in a "com.example" package.
"grails test-app integration: com.example.ClassName" runs the test appropriately.
All domains, controllers, and tests are in the same package.
Attachments
-
$i18n.getText("admin.common.words.hide")
- testExample.zip
- 18/Dec/09 10:53 AM
- 280 kB
- Alex Weino
-
- testExample/.classpath 0.7 kB
- testExample/.project 0.5 kB
- testExample/.../org.codehaus.groovy.eclipse.preferences.prefs 0.1 kB
- testExample/application.properties 0.2 kB
- testExample/grails-app/.../BootStrap.groovy 0.1 kB
- testExample/.../BuildConfig.groovy 1 kB
- testExample/grails-app/.../Config.groovy 3 kB
- testExample/grails-app/.../DataSource.groovy 0.6 kB
- testExample/grails-app/.../resources.groovy 0.0 kB
- testExample/.../UrlMappings.groovy 0.2 kB
- testExample/.../MyDomainController.groovy 0.2 kB
- testExample/grails-app/.../MyDomain.groovy 0.2 kB
- testExample/.../messages.properties 3 kB
- testExample/.../messages_de.properties 4 kB
- testExample/.../messages_es.properties 3 kB
- testExample/.../messages_fr.properties 2 kB
- testExample/.../messages_it.properties 2 kB
- testExample/.../messages_ja.properties 2 kB
- testExample/.../messages_nl.properties 3 kB
- testExample/.../messages_pt_BR.properties 3 kB
- testExample/.../messages_pt_PT.properties 3 kB
- testExample/.../messages_ru.properties 4 kB
- testExample/.../messages_th.properties 5 kB
- testExample/.../messages_zh_CN.properties 2 kB
- testExample/.../SampleService.groovy 0.1 kB
- testExample/grails-app/views/error.gsp 2 kB
- testExample/grails-app/views/index.gsp 3 kB
- testExample/grails-app/.../layouts/main.gsp 0.7 kB
- testExample/stacktrace.log 115 kB
- testExample/.../application.properties 0.2 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
It is probably important that I add the class I am testing is a controller and Tests class extends ControllerUnitTestCase.
I personally can't reproduce this, maybe its worth attaching an example
I figured out what was going on. I had all my tests in "test/integration", rather than "test/integration/com/example" when it is in the package "com.example". I don't know enough about packages to say if this is proper behavior or not.
Graeme, I see what's going on here. We could provide a better error message.
I am inclined to reopen and schedule for 1.2.1. Agree?
i thought it was "grails test-app --integration", but Luke can you investigate?