Don't include stacktrace to failure

This commit is contained in:
Simon Ogorodnik
2018-04-04 17:33:14 +03:00
parent 1a015402c8
commit 750cb38f8c
@@ -129,16 +129,16 @@ class AllKotlinInspectionTest : DaemonAnalyzerTestCase() {
println("##teamcity[testStarted name='$name' captureStandardOutput='true']")
val (time, errors) = block()
if (errors.isNotEmpty()) {
val detailsWriter = StringWriter()
val errorDetailsPrintWriter = PrintWriter(detailsWriter)
errors.forEach {
it.printStackTrace(errorDetailsPrintWriter)
errorDetailsPrintWriter.println()
}
errorDetailsPrintWriter.close()
val details = detailsWriter.toString()
println("##teamcity[testFailed name='$name' message='Exceptions reported' details='${details.tcEscape()}']")
//
// val detailsWriter = StringWriter()
// val errorDetailsPrintWriter = PrintWriter(detailsWriter)
// errors.forEach {
// it.printStackTrace(errorDetailsPrintWriter)
// errorDetailsPrintWriter.println()
// }
// errorDetailsPrintWriter.close()
// val details = detailsWriter.toString()
println("##teamcity[testFailed name='$name' message='Exceptions reported' details='exceptions were thrown while inspecting']")
} else {
println("##teamcity[testFinished name='$name' duration='$time']")
}