marcingrzejszczak / gradle-test-profiler

created with @AChudzik. The idea of this plugin is to perform profiling of your tests. You will be able to see your test execution times sorted in the descending manner together with an information about a module and the class name from which the test was executed.
Apache License 2.0
25 stars 11 forks source link

Make it configurable whether the build should be broken if time is exceded #30

Closed marcingrzejszczak closed 9 years ago

marcingrzejszczak commented 9 years ago
buildBreaker {
maxTestThreshold = 1000L
/* 
// BREAK THE BUILD
whenTimeExceeded = breakBuild() 

// DISPLAY WARNING
whenTimeExceeded = displayWarning()
whenTimeExceeded = displayWarning { TestDescriptor testDescriptor, TestResult result ->
return "Some string message"
}

// DO WHAT YOU WANT
whenTimeExceeded = act { Logger log, TestDescriptor testDescriptor, TestResult result ->
    // do what you want
}
*/
}