On 01/12/2010, at 9:39 AM, Rene Groeschke wrote: > Am 30.11.10 23:36, schrieb Adam Murdoch: > > > > > On 01/12/2010, at 7:37 AM, Marcus Better wrote: > > > > > >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > > >> > > >> Hi, > > >> > > >> my Hudson build server does not like it when tests are > sometimes > > >> skipped in a build because the classes didn't change. > How can I > > >> make sure the tests run for each build? > > > > > > What does it complain about? Perhaps there is something we > can > > > change in Gradle to improve this. > Hudson checks the timestamp of the test reports and if they are older > than the build job started, it marks the build as a failed.
That really sounds like a problem for Hudson to fix. Another work around, rather than running the tests every time, is to update the timestamps of the reports: test { doLast { def timestamp = System.currentTimeMillis() outputs.files.asFileTree().each { it.lastModified = timestamp } } } -- Adam Murdoch Gradle Developer http://www.gradle.org CTO, Gradle Inc. - Gradle Training, Support, Consulting http://www.gradle.biz