mirror of
https://github.com/vlang/v.git
synced 2025-09-09 07:15:50 -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))
|
||||
|
||||
runner.print_service("
|
||||
|##teamcity[
|
||||
|testStarted name='${runner.fname}'
|
||||
|##teamcity[testStarted
|
||||
|name='${runner.fname}'
|
||||
|locationHint='v_qn://${runner.file_test_info.file}:${runner.fname}'
|
||||
|]".strip_margin())
|
||||
return true
|
||||
@ -124,8 +124,8 @@ fn (mut runner TeamcityTestRunner) fn_fail() {
|
||||
details := 'See failed assertion: ${assertion.fpath}:${assertion.line_nr + 1}'
|
||||
|
||||
runner.print_service("
|
||||
|##teamcity[
|
||||
|testFailed name='${runner.fname}'
|
||||
|##teamcity[testFailed
|
||||
|name='${runner.fname}'
|
||||
|duration='${duration}'
|
||||
|details='${details}'
|
||||
|type='comparisonFailure'
|
||||
@ -161,6 +161,7 @@ fn (mut runner TeamcityTestRunner) print_service(msg string) {
|
||||
without_new_lines := msg
|
||||
.trim('\n\r ')
|
||||
.replace('\r', '')
|
||||
.replace('\n]', ']')
|
||||
.replace('\n', ' ')
|
||||
eprintln(without_new_lines)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user