Skip to content

Instantly share code, notes, and snippets.

@eleventigers
Created December 16, 2015 10:30
Show Gist options
  • Save eleventigers/c6056a2677650884f432 to your computer and use it in GitHub Desktop.
Save eleventigers/c6056a2677650884f432 to your computer and use it in GitHub Desktop.
Configures all JUnit (or TestNG) test tasks to write message to console whenever "test failed" / "test passed" / "test skipped" events occur.
tasks.matching {it instanceof Test}.all {
testLogging.events = ["failed", "passed", "skipped"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment