@@ -39,6 +39,10 @@ data class TestsGenerationReport(
3939 appendHtmlLine(
4040 " Failing because of unexpected exception test methods: ${testMethodsStatistic.sumOf { it.failing }} "
4141 )
42+ appendHtmlLine(
43+ " Failing because of exception (according to custom settings) test methods: " +
44+ " ${testMethodsStatistic.sumOf { it.artificiallyFailing }} "
45+ )
4246 appendHtmlLine(
4347 " Failing because of exceeding timeout test methods: ${testMethodsStatistic.sumOf { it.timeout }} "
4448 )
@@ -93,8 +97,9 @@ data class TestsGenerationReport(
9397 private fun ExecutableId.countTestMethods (): TestMethodStatistic = TestMethodStatistic (
9498 testMethodsNumber(successfulExecutions),
9599 testMethodsNumber(failedExecutions),
100+ testMethodsNumber(artificiallyFailedExecutions),
96101 testMethodsNumber(timeoutExecutions),
97- testMethodsNumber(crashExecutions)
102+ testMethodsNumber(crashExecutions),
98103 )
99104
100105 private fun ExecutableId.countErrors (): Int = errors.getOrDefault(this , emptyMap()).values.sum()
@@ -106,7 +111,13 @@ data class TestsGenerationReport(
106111 executions.getOrPut(this ) { mutableSetOf () } + = it
107112 }
108113
109- private data class TestMethodStatistic (val successful : Int , val failing : Int , val timeout : Int , val crashes : Int ) {
110- val count: Int = successful + failing + timeout + crashes
114+ private data class TestMethodStatistic (
115+ val successful : Int ,
116+ val failing : Int ,
117+ val artificiallyFailing : Int ,
118+ val timeout : Int ,
119+ val crashes : Int ,
120+ ) {
121+ val count: Int = successful + failing + artificiallyFailing + timeout + crashes
111122 }
112123}
0 commit comments