jdaugherty opened a new issue, #344:
URL: https://github.com/apache/grails-intellij-plugin/issues/344
In out Grails 2.5.6 application, we have lots of tests with descriptive
names, e.g.
```
void "Search: Fail helpfully if there's no mapping and the given community
ID is bad"() {
...
}
```
Creating a run configuration for this single test method (e.g. via the
gutter icon) does not work properly; the created command (as shown in the
configuration editor) is:
```
test-app integration: "MySpec.Search: Fail helpfully if there's no mapping
and the given community ID is bad" -echoOut
```
Running this configuration executes the whole test suite.
NB: If only this test fails, "re-run failed tests" creates this command:
```
/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/java/8.0.181-oracle/bin/java
-Dgrails.home=/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/grails/2.5.6
-Dtools.jar=/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/java/8.0.181-oracle/lib/tools.jar
-Dgroovy.starter.conf=/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/grails/2.5.6/conf/groovy-starter.conf
-Dgrails.full.stacktrace=true
-Dbase.dir=/home/<hidden-personal-data>/rreitzig/Code/hds-webapp
-Dgrails.build.listeners=org.jetbrains.groovy.grails.rt.GrailsIdeaTestListener
-Dfile.encoding=UTF-8 -classpath
/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/grails/2.5.6/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.4.10.jar:/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/grails/2.5.6/dist/grails-bootstrap-2.5.6.jar
org.codehaus.groovy.grails.cli.support.GrailsStarter --classpath
/home/<hidden-personal-data>/rreitzig/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/183.5429.30/p
lugins/Grails/lib/grails-rt.jar --main
org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf
/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/grails/2.5.6/conf/groovy-starter.conf
"test-app integration:
\"com.digithurst.hdspro.administrative.MappingServiceSpec.\\"Search: there's
bad\\" -echoOut com.digithurst.hdspro.administrative.MappingServiceSpec.Search:
Fail helpfully if there's no mapping and the given community ID is bad\"
-plain-output"
```
It fails with:
```
| Error Error processing command line arguments: unbalanced quotes in
test-app integration:
"com.digithurst.hdspro.administrative.MappingServiceSpec.\"Search: there's
bad\" -echoOut com.digithurst.hdspro.administrative.MappingServiceSpec.Search:
Fail helpfully if there's no mapping and the given community ID is bad"
-plain-output
```
This seems to be specific to the single quote; without it, we get:
```
/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/java/8.0.181-oracle/bin/java
-Dgrails.home=/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/grails/2.5.6
-Dtools.jar=/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/java/8.0.181-oracle/lib/tools.jar
-Dgroovy.starter.conf=/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/grails/2.5.6/conf/groovy-starter.conf
-Dgrails.full.stacktrace=true
-Dbase.dir=/home/<hidden-personal-data>/rreitzig/Code/hds-webapp
-Dgrails.build.listeners=org.jetbrains.groovy.grails.rt.GrailsIdeaTestListener
-Dfile.encoding=UTF-8 -classpath
/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/grails/2.5.6/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.4.10.jar:/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/grails/2.5.6/dist/grails-bootstrap-2.5.6.jar
org.codehaus.groovy.grails.cli.support.GrailsStarter --classpath
/home/<hidden-personal-data>/rreitzig/.local/share/JetBrains/Toolbox/apps/IDEA-U/ch-0/183.5429.30/p
lugins/Grails/lib/grails-rt.jar --main
org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf
/home/<hidden-personal-data>/rreitzig/.sdkman/candidates/grails/2.5.6/conf/groovy-starter.conf
"test-app integration: -echoOut
com.digithurst.hdspro.administrative.MappingServiceSpec.Search: Fail helpfully
if there is no mapping and the given community ID is bad -plain-output"
```
Which runs successfully but exectues _no_ test.
---
*Imported from
[IDEA-206488](https://youtrack.jetbrains.com/issue/IDEA-206488) · Type: Bug ·
Votes: 0*
*Comments, attachments, dates and reporter are not part of the export —
follow the link above for the full history.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]