v.preludes: fix teamcity reporter message formatting, to be compatible with IntelliJ Idea 2024.3 (#23065)

This commit is contained in:
Jakub Jabłoński 2024-12-05 00:08:16 +01:00 committed by GitHub
parent b103ce354f
commit 8cc4a81aa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -65,8 +65,8 @@ fn (mut runner TeamcityTestRunner) fn_start() bool {
println(term.gray(msg)) println(term.gray(msg))
runner.print_service(" runner.print_service("
|##teamcity[ |##teamcity[testStarted
|testStarted name='${runner.fname}' |name='${runner.fname}'
|locationHint='v_qn://${runner.file_test_info.file}:${runner.fname}' |locationHint='v_qn://${runner.file_test_info.file}:${runner.fname}'
|]".strip_margin()) |]".strip_margin())
return true return true
@ -124,8 +124,8 @@ fn (mut runner TeamcityTestRunner) fn_fail() {
details := 'See failed assertion: ${assertion.fpath}:${assertion.line_nr + 1}' details := 'See failed assertion: ${assertion.fpath}:${assertion.line_nr + 1}'
runner.print_service(" runner.print_service("
|##teamcity[ |##teamcity[testFailed
|testFailed name='${runner.fname}' |name='${runner.fname}'
|duration='${duration}' |duration='${duration}'
|details='${details}' |details='${details}'
|type='comparisonFailure' |type='comparisonFailure'
@ -161,6 +161,7 @@ fn (mut runner TeamcityTestRunner) print_service(msg string) {
without_new_lines := msg without_new_lines := msg
.trim('\n\r ') .trim('\n\r ')
.replace('\r', '') .replace('\r', '')
.replace('\n]', ']')
.replace('\n', ' ') .replace('\n', ' ')
eprintln(without_new_lines) eprintln(without_new_lines)
} }