gradle: handle test filtering when test task invoked but no tests were found for the all inclusion pattern (['*'])

This commit is contained in:
Vladislav.Soroka
2015-10-28 16:47:25 +03:00
parent fb5ed2a4c4
commit a437e61a2a
@@ -82,7 +82,7 @@ gradle.taskGraph.beforeTask { Task task ->
logTestEvent("afterTest", descriptor, null, result)
}
if(ijTestFilteringSupported) {
if(ijTestIncludes != ['*'] && ijTestFilteringSupported) {
task.filter {
ijTestIncludes.each(){ includeTestsMatching "${it}" }
}