Skip to content

Conversation

@swichu91
Copy link

Description

This MR allows for printing SECTIONs when using TeamCity reporter.

Two new TeamCity reporter options were added:
Xsections=true/false - enable printing sections
Xseparator= - optional, override the default separator(".") when composing unique test cases from sections

As TeamCity only operates on ordinary test cases(no extra sections tags as far as I know), it is required to flatten the section tree.
Test case names are built as follows:name='<TEST_CASE>.<SECTION>.*']
Additionally, any spaces within test/section name are replaced with underscores.

An example of entry:
##teamcity[testStarted name='basic_test.check_if_x.should_do_y']

TBH, I would get rid of section option in favour of supporting it permanently. Such change will make code much simpler and more readable, but the decision is up to you.

GitHub Issues

Mentioned here: #1879

@horenmar
Copy link
Member

Why are spaces replaced with underscores? I was under the impression that TeamCity can handle spaces in names.

@krcook
Copy link

krcook commented Jun 14, 2024

What needs to happen to move this pull request forward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants