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

Removing TEAMCITY_PROJECT_NAME environment variable breaks other tools #43

Open
cezarypiatekGC opened this issue Jun 7, 2022 · 2 comments

Comments

@cezarypiatekGC
Copy link

Hi,

Can anyone explain why the TEAMCITY_PROJECT_NAME env variable is removed by this test adapter?

Environment.SetEnvironmentVariable("TEAMCITY_PROJECT_NAME", string.Empty);

The lack of this variable breaks other tools (for example ApprovalTests) which relays on this variable while discovering TC context.

Kind Regards,
Cezary

@NikolayPianikov
Copy link
Contributor

Because some tools (for instance xUnit) use this variable and break TeamCity integration. It is better to use TEAMCITY_VERSION instead. I've created the PR: approvals/ApprovalTests.Net#617

@cezarypiatekGC
Copy link
Author

It's over a year since I reported the issue and I again hit the problem that TEAMCITY_PROJECT_NAME is not available. Please restore this variable. If xUnit integration with TC is broken, then xUnit should be fixed instead of breaking everything around.

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

2 participants