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

Microsoft.Testing.Platform support #53

Open
doxxx opened this issue Feb 7, 2025 · 3 comments
Open

Microsoft.Testing.Platform support #53

doxxx opened this issue Feb 7, 2025 · 3 comments

Comments

@doxxx
Copy link

doxxx commented Feb 7, 2025

Microsoft has introduced a new framework, Microsoft.Testing.Platform, as a replacement for VSTest:

https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-platform-intro?tabs=continuous-integration

Are there plans to integrate this with Teamcity? I'm particularly interested in being able to collect tests results in Teamcity when running the tests via a script in the repo executed in Teamcity using a simple command runner, not using Teamcity's .NET runner(s).

@boris-yakhno
Copy link
Collaborator

boris-yakhno commented Feb 10, 2025

Hi @doxxx,
We have an open issue on our YouTrack for supporting the Microsoft Testing Platform. Please feel free to upvote it and add comments with any feedback you would like us to consider.

Regarding on-the-fly test reporting without using the .NET runner – this is already possible by using the TeamCity.VSTest.TestAdapter, although it takes a little effort to set up. If you want to set up on-the-fly reporting from dotnet test that is being run from a command line runner, I can provide you more info on referencing TeamCity.VSTest.TestAdapter and setting up the reporting.
Also, you can use the XML Report Processing build feature to collect the test results after dotnet test finishes (so no on-the-fly reporting, but somewhat easier to set up).

@doxxx
Copy link
Author

doxxx commented Feb 10, 2025

I'm already using TeamCity.VSTest.TestAdapter, so I was wondering if it would just magically work for Microsoft.Testing.Platform at some point in the future or if there would be a different adapter required.

@doxxx
Copy link
Author

doxxx commented Feb 10, 2025

I see there's some commentary on this subject in that YT issue you linked. I'll take a look at that.

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