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

The flowId attribute in service messages makes tests unable to be nested under a suite #265

Open
Nikerino opened this issue Aug 2, 2022 · 0 comments

Comments

@Nikerino
Copy link

Nikerino commented Aug 2, 2022

I'm currently using teamcity-messages with Python's unittest module.

When running my tests, I created a custom result class to output testSuiteStarted and testSuiteFinished messages before and after the tests run. Whenever these run on TeamCity, the test suite is shown in the build log, but the individual tests are not nested under the test suite. Additionally, when attempting to view all test suites that ran, the tests are not recognized to be a part of the suite.

I believe this is being caused by the flowId attribute. Whenever I output custom service messages without the flowId attribute, the individual tests become nested under the test suite without issue. It doesn't seem like there is a way to customize this attribute without making a custom result class and customizing every single service message for the tests, because the flowId attribute gets set automatically to the name of the individual test running.

The flowId attribute could be set to None by default, since it is interfering with the default behavior of test reporting.

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

No branches or pull requests

1 participant