Skip to content

Commit 59727cd

Browse files
committed
fix for date-time and faults
1 parent 1fed4da commit 59727cd

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

core/src/main/kotlin/org/evomaster/core/problem/enterprise/service/WFCReportWriter.kt

+8-5
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ class WFCReportWriter {
5555
val faultIds = (ea.result as EnterpriseActionResult)
5656
.getFaults()
5757
.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+
}
6366
}
6467

6568
val tc = TestCase()

wfc/pom.xml

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
<version>1.2.2</version>
7070
<configuration>
7171
<sourceType>yamlschema</sourceType>
72+
<useJodaDates>false</useJodaDates>
73+
<formatDateTimes>true</formatDateTimes>
74+
<formatDates>true</formatDates>
75+
<formatTimes>true</formatTimes>
7276
</configuration>
7377
<executions>
7478
<execution>

0 commit comments

Comments
 (0)