mirror of
https://github.com/vlang/v.git
synced 2025-09-11 16:36:20 -04:00
v.preludes: fix teamcity reporter message formatting, to be compatible with IntelliJ Idea 2024.3 (#23065)
This commit is contained in:
parent
b103ce354f
commit
8cc4a81aa6
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user