Created
January 27, 2015 22:32
-
-
Save pawcik/9f74956033e7ef9b25f1 to your computer and use it in GitHub Desktop.
gradle test timestamp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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