File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,7 @@ if !os.isDir(rootPath) then {
62
62
val reports : Seq [os.Path ] = findFiles(Seq (rootPath))
63
63
println(s " Found ${reports.length} mill json reports: " )
64
64
println(reports.mkString(" \n " ))
65
- if reports.isEmpty then {
66
- println(" Error: no reports found!" )
67
- System .exit(1 )
68
- }
65
+ if reports.isEmpty then println(" Warn: no reports found!" )
69
66
println(" Reading reports..." )
70
67
val tests : Seq [Test ] = reports.map(x => ujson.read(x.toNIO)).flatMap { json =>
71
68
json(1 ).value.asInstanceOf [ArrayBuffer [ujson.Obj ]].map { test =>
@@ -91,10 +88,7 @@ val tests: Seq[Test] = reports.map(x => ujson.read(x.toNIO)).flatMap { json =>
91
88
}
92
89
}
93
90
println(s " Found ${tests.length} tests. " )
94
- if tests.isEmpty then {
95
- println(" Error: no tests found!" )
96
- System .exit(1 )
97
- }
91
+ if tests.isEmpty then println(" Warn: no tests found!" )
98
92
println(" Generating JUnit XML report..." )
99
93
val suites = tests.groupBy(_.fullyQualifiedName).map { case (suit, tests) =>
100
94
val testcases = tests.map { test =>
You can’t perform that action at this time.
0 commit comments