@@ -39,6 +39,10 @@ data class TestsGenerationReport(
39
39
appendHtmlLine(
40
40
" Failing because of unexpected exception test methods: ${testMethodsStatistic.sumOf { it.failing }} "
41
41
)
42
+ appendHtmlLine(
43
+ " Failing because of exception (according to custom settings) test methods: " +
44
+ " ${testMethodsStatistic.sumOf { it.artificiallyFailing }} "
45
+ )
42
46
appendHtmlLine(
43
47
" Failing because of exceeding timeout test methods: ${testMethodsStatistic.sumOf { it.timeout }} "
44
48
)
@@ -93,8 +97,9 @@ data class TestsGenerationReport(
93
97
private fun ExecutableId.countTestMethods (): TestMethodStatistic = TestMethodStatistic (
94
98
testMethodsNumber(successfulExecutions),
95
99
testMethodsNumber(failedExecutions),
100
+ testMethodsNumber(artificiallyFailedExecutions),
96
101
testMethodsNumber(timeoutExecutions),
97
- testMethodsNumber(crashExecutions)
102
+ testMethodsNumber(crashExecutions),
98
103
)
99
104
100
105
private fun ExecutableId.countErrors (): Int = errors.getOrDefault(this , emptyMap()).values.sum()
@@ -106,7 +111,13 @@ data class TestsGenerationReport(
106
111
executions.getOrPut(this ) { mutableSetOf () } + = it
107
112
}
108
113
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
111
122
}
112
123
}
0 commit comments