On 22/12/2010, at 8:56 AM, Adam Monsen wrote:
> After a successful build, "gradle test" or "gradle build" just says
> everything is "UP-TO-DATE". Is this expected?
>
> Here's my build file: http://tinyurl.com/2dvlcpv
>
> I think I'd rather that tests ran every time I do "gradle test", even if
> nothing changed. Is there some way to force that?
I'm curious why you would want to run the tests even if nothing has changed?
There's a few options for forcing the tests to run:
1. Force the test task to never be up-to-date:
test.outputs.upToDateWhen { false }
2. Delete the outputs of the tests every time:
test.dependsOn cleanTest
--
Adam Murdoch
Gradle Developer
http://www.gradle.org
CTO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz