Skip to content

Instantly share code, notes, and snippets.

@pawcik
Created January 27, 2015 22:32
Show Gist options
  • Select an option

  • Save pawcik/9f74956033e7ef9b25f1 to your computer and use it in GitHub Desktop.

Select an option

Save pawcik/9f74956033e7ef9b25f1 to your computer and use it in GitHub Desktop.
gradle test timestamp
import groovy.time.TimeCategory
test {
testLogging {
afterTest { TestDescriptor desc, TestResult res ->
def td = TimeCategory.minus(new Date(res.endTime), new Date(res.startTime))
println " $res.resultType ($td) $desc.name ($desc.className)"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment