Fix error reporting in TeamCity: don't create a TestCase for each test in case of compiler failure
This commit is contained in:
committed by
Pavel Punegov
parent
1782b4b973
commit
7d8a4e2bf1
@@ -931,10 +931,10 @@ fun runTest() {
|
|||||||
runCompiler(compileList, buildExePath(), flags)
|
runCompiler(compileList, buildExePath(), flags)
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
println("ERROR: Compilation failed for test suite: ${testSuite.name} with exception: ${ex}")
|
println("ERROR: Compilation failed for test suite: ${testSuite.name} with exception: ${ex}")
|
||||||
ktFiles.each {
|
println("The following files were unable to compile:")
|
||||||
def testCase = testSuite.createTestCase(it.name)
|
ktFiles.each { println it.name }
|
||||||
testCase.error(ex)
|
statistics.error(ktFiles.size())
|
||||||
}
|
testSuite.finish()
|
||||||
throw new RuntimeException("Compilation failed", ex)
|
throw new RuntimeException("Compilation failed", ex)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user