Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.3
-
Fix Version/s: 1.2-M4
-
Component/s: None
-
Labels:None
-
Patch Submitted:Yes
Description
When using grails interactive:
grails interactive
test-app
(you'll notice that two tests run - one for Book and one for Author)
test-app Book
(you'll notice that only one test runs, this is as expected)
test-app
(notice that only one test was run - I expected that since I didn't pass the name of a test to the test-app command, it would have run the whole suite again, but it only ran Book.)
-
- grails-2811.patch.txt
- 16/Oct/08 2:26 AM
- 7 kB
- Rob Nielsen
-
Hide
- inter-bug-report-11042008.zip
- 11/Apr/08 3:47 PM
- 25 kB
- Mike Hugo
-
- grails-app/conf/BootStrap.groovy 0.1 kB
- grails-app/conf/Config.groovy 3 kB
- grails-app/conf/DataSource.groovy 0.6 kB
- grails-app/conf/UrlMappings.groovy 0.2 kB
- grails-app/conf/spring/resources.groovy 0.0 kB
- grails-app/domain/Author.groovy 0.0 kB
- grails-app/domain/Book.groovy 0.0 kB
- grails-app/i18n/messages.properties 2 kB
- grails-app/i18n/messages_de.properties 3 kB
- grails-app/i18n/messages_es.properties 3 kB
- grails-app/i18n/messages_fr.properties 2 kB
- grails-app/i18n/messages_it.properties 2 kB
- grails-app/i18n/messages_ja.properties 2 kB
- grails-app/i18n/messages_nl.properties 3 kB
- grails-app/i18n/messages_ru.properties 4 kB
- grails-app/i18n/messages_th.properties 5 kB
- grails-app/.../messages_zh_CN.properties 2 kB
- grails-app/views/error.gsp 1 kB
- grails-app/views/layouts/main.gsp 0.7 kB
- test/integration/AuthorTests.groovy 0.1 kB
- test/integration/BookTests.groovy 0.1 kB
- test/reports/TEST-AuthorTests-err.txt 0.0 kB
- test/reports/TEST-AuthorTests-out.txt 0.0 kB
- test/reports/TEST-AuthorTests.xml 0.4 kB
- test/reports/TEST-BookTests-err.txt 0.0 kB
- test/reports/TEST-BookTests-out.txt 0.0 kB
- test/reports/TEST-BookTests.xml 0.4 kB
- test/reports/TESTS-TestSuites.xml 0.9 kB
- test/reports/html/0_AuthorTests-err.txt 0.0 kB
- test/reports/html/0_AuthorTests-out.txt 0.0 kB
Issue Links
- is related to
-
GRAILS-2800
Grails Interactive mode doesn't use correct environment when running tests
-
-
GRAILS-2840
Grails interactive "remembering" previous arguments
-
-
GRAILS-3204
In interactive mode, Grails creates a war file with grails.env=development
-
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Here's a patch for this issue (based off trunk revision 7434). Changes were all to
src/commons/org/codehaus/groovy/grails/cli/GrailsScriptRunner.groovy
The problem was that system properties were being set for
the scripts and being left around for subsequent scripts. I changed it to
take a copy of the system properties and restore it after each step.
I also added an 'exit' command to get out of interactive mode.
There was 0% coverage of GrailsScriptRunner so I added a
test/groovy/org/codehaus/groovy/grails/cli/InteractiveTests.groovy
file that tests basic interactive mode functionality.
This patch also resolves
GRAILS-2800,GRAILS-2840,GRAILS-3204