We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fe0fa02 + 82d7402 commit 0ea9ba3Copy full SHA for 0ea9ba3
core/src/main/kotlin/org/evomaster/core/Main.kt
@@ -222,7 +222,13 @@ class Main {
222
223
info("Covered targets (lines, branches, faults, etc.): ${targetsInfo.total}")
224
info("Potential faults: ${faults.size}")
225
- info("Bytecode line coverage: $percentage% (${linesInfo.total} out of $totalLines in $units units/classes)")
+
226
+ if(totalLines == 0 || units == 0){
227
+ logError("Detected $totalLines lines to cover, for a total of $units units/classes." +
228
+ " Are you sure you did setup getPackagePrefixesToCover() correctly?")
229
+ } else {
230
+ info("Bytecode line coverage: $percentage% (${linesInfo.total} out of $totalLines in $units units/classes)")
231
+ }
232
} else {
233
warn("Failed to retrieve SUT info")
234
}
0 commit comments