Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 1.4-M1
-
Fix Version/s: 1.4-M1
-
Component/s: None
-
Labels:None
Description
In the upgrade from gradle .9 to 1.0 it looks like the ability to run a single test has been deleted (or the documentation for how to do it needs to be updated).
The grails documentation for Dev setup talks about how to do this: http://grails.org/GrailsDevEnvironment
In checking out the 1.3.7 tag, I'm able to successfully run this command:
./gradlew testSingleMappingDsl
It runs successfully and finishes testing fairly quickly without running the full suite of tests:
% ./gradlew testSingleMappingDsl :compileJava UP-TO-DATE :compileGroovy UP-TO-DATE :processResources UP-TO-DATE :classes UP-TO-DATE :coreJar UP-TO-DATE :compileTestJava UP-TO-DATE :compileTestGroovy UP-TO-DATE :processTestResources UP-TO-DATE :testClasses UP-TO-DATE :testSingleMappingDsl Application context shutting down... Application context shutdown. BUILD SUCCESSFUL Total time: 27.33 secs
In the current master for 1.4 (595f0e6c1a9a99bfdcb4752807efe0c7d541a860), running a single test doesn't work:
% ./gradlew testSingleMappingDsl FAILURE: Could not determine which tasks to execute. * What went wrong: Task 'testSingleMappingDsl' not found in root project 'grails-core'. * Try: Run gradlew tasks to get a list of available tasks. BUILD FAILED Total time: 4.441 secs
Activity
Jeff Brown
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Jeff Brown [ brownj ] | |
| Resolution | Not A Bug [ 6 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
Contegix Support
made changes -
| Project Import | Thu Mar 24 21:22:24 CDT 2011 [ 1301019744151 ] |
Burt Beckwith
made changes -
| Workflow | jira [ 34558 ] | Grails [ 46710 ] |
Burt Beckwith
made changes -
| Workflow | Grails [ 46710 ] | Copy of Grails [ 54167 ] |
Burt Beckwith
made changes -
| Workflow | Copy of Grails [ 54167 ] | Grails [ 61577 ] |
Burt Beckwith
made changes -
| Workflow | Grails [ 61577 ] | Grails2 [ 69157 ] |
Burt Beckwith
made changes -
| Workflow | Grails2 [ 69157 ] | jira [ 76691 ] |
Burt Beckwith
made changes -
| Workflow | jira [ 76691 ] | Grails2 [ 79630 ] |
Peter Ledbrook
made changes -
| Workflow | Grails2 [ 79630 ] | jira [ 87738 ] |
Peter Ledbrook
made changes -
| Workflow | jira [ 87738 ] | Grails2 [ 95927 ] |
We have removed our own testSingle* support in favor of the -Dtest.single=TestName support provided by Gradle out of the box.