Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sections support to TeamCity reporter #2765

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

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