Don't include stacktrace to failure
This commit is contained in:
@@ -129,16 +129,16 @@ class AllKotlinInspectionTest : DaemonAnalyzerTestCase() {
|
|||||||
println("##teamcity[testStarted name='$name' captureStandardOutput='true']")
|
println("##teamcity[testStarted name='$name' captureStandardOutput='true']")
|
||||||
val (time, errors) = block()
|
val (time, errors) = block()
|
||||||
if (errors.isNotEmpty()) {
|
if (errors.isNotEmpty()) {
|
||||||
|
//
|
||||||
val detailsWriter = StringWriter()
|
// val detailsWriter = StringWriter()
|
||||||
val errorDetailsPrintWriter = PrintWriter(detailsWriter)
|
// val errorDetailsPrintWriter = PrintWriter(detailsWriter)
|
||||||
errors.forEach {
|
// errors.forEach {
|
||||||
it.printStackTrace(errorDetailsPrintWriter)
|
// it.printStackTrace(errorDetailsPrintWriter)
|
||||||
errorDetailsPrintWriter.println()
|
// errorDetailsPrintWriter.println()
|
||||||
}
|
// }
|
||||||
errorDetailsPrintWriter.close()
|
// errorDetailsPrintWriter.close()
|
||||||
val details = detailsWriter.toString()
|
// val details = detailsWriter.toString()
|
||||||
println("##teamcity[testFailed name='$name' message='Exceptions reported' details='${details.tcEscape()}']")
|
println("##teamcity[testFailed name='$name' message='Exceptions reported' details='exceptions were thrown while inspecting']")
|
||||||
} else {
|
} else {
|
||||||
println("##teamcity[testFinished name='$name' duration='$time']")
|
println("##teamcity[testFinished name='$name' duration='$time']")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user