[GRADLE-1064] Provide built-in support for executing a single test Created: 28/Jul/10  Updated: 04/Jan/13  Resolved: 24/Nov/10

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 0.9-rc-1

Type: New Feature
Reporter: Chris Beams Assignee: Hans Dockter
Resolution: Fixed Votes: 0


 Description   

For example:

gradle test org.foo.MyTests

A use case here would be that a user runs all tests for a project, and notices that one fails. User attempts to fix the problem and wants to quickly re-run that test.

The Grails project built custom support for this functionality in their Gradle build, but it would be nice to have for all users.



 Comments   
Comment by Hans Dockter [ 28/Jul/10 ]

Hi Chris,

this is now possible. You need to specify -Dtest.single=MyTest :spring-rabbit:test or -D:spring-rabbit:test.single=MyTest test. The build fails if this property is set for a test task and no tests are exectued (by design).

Comment by Chris Beams [ 28/Jul/10 ]

Great!

Generated at Wed Jun 30 11:45:58 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.