Skip to content

Commit

Permalink
Update OutputReportParser.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
adamfilipow92 authored and mergify-bot committed Mar 23, 2021
1 parent 32cb0b2 commit 028ac18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_tests/src/test/kotlin/utils/OutputReportParser.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ private val jsonMapper by lazy { JsonMapper().registerModule(KotlinModule()) }
fun String.asOutputReport() = jsonMapper.readValue<OutputReport>(this)

val OutputReport.firstTestSuiteOverview: TestSuiteOverview
get() = testResults.values.first().first().testSuiteOverview
get() = testResults.values.first().testAxises.first().testSuiteOverview

data class OutputReport(
val args: Any,
val cost: OutputReportCostNode? = null,
val weblinks: List<String> = emptyList(),
@JsonProperty("test_results") val testResults: Map<String, List<TextAxis>> = emptyMap(),
@JsonProperty("test_results") val testResults: Map<String, Matrix> = emptyMap(),
val error: String = ""
)

Expand Down

0 comments on commit 028ac18

Please sign in to comment.