File tree 2 files changed +12
-5
lines changed
core/src/main/kotlin/org/evomaster/core/problem/enterprise/service
2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -55,11 +55,14 @@ class WFCReportWriter {
55
55
val faultIds = (ea.result as EnterpriseActionResult )
56
56
.getFaults()
57
57
.map { FaultCategoryId ().apply { code = it.category.code; context = it.context} }
58
- val ff = FoundFault ()
59
- ff.testCaseId = testId
60
- ff.operationId = ea.action.getName()
61
- ff.faultCategories = faultIds.toSet()
62
- faults.foundFaults.add(ff)
58
+
59
+ if (faultIds.isNotEmpty()) {
60
+ val ff = FoundFault ()
61
+ ff.testCaseId = testId
62
+ ff.operationId = ea.action.getName()
63
+ ff.faultCategories = faultIds.toSet()
64
+ faults.foundFaults.add(ff)
65
+ }
63
66
}
64
67
65
68
val tc = TestCase ()
Original file line number Diff line number Diff line change 69
69
<version >1.2.2</version >
70
70
<configuration >
71
71
<sourceType >yamlschema</sourceType >
72
+ <useJodaDates >false</useJodaDates >
73
+ <formatDateTimes >true</formatDateTimes >
74
+ <formatDates >true</formatDates >
75
+ <formatTimes >true</formatTimes >
72
76
</configuration >
73
77
<executions >
74
78
<execution >
You can’t perform that action at this time.
0 commit comments