-
Notifications
You must be signed in to change notification settings - Fork 326
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
CI test reporters #254
Comments
AppVeyor supports uploading trx files. Have to check if real time reporting works (it will require AppVeyor logger to be .net core compatible). The xunit reporter in jenkins may support parsing trx. @piotrpMSFT @livarcocc can add more details, they were trying it for dotnet-cli repo. Teamcity supports parsing trx files via xml report parser. VSTS supports trx with a publish results task. |
Good to know. It's close, but not quite what I had in mind as it seems this requires users to take additional configuration steps for CI's to get the trx file. dotnet-test-xunit, on the other hand, automatically detected AppVeyor or TeamCity environments and produced test reporting. Details on how that's implemented: Here is Xunit implementation: https://github.com/xunit/xunit/tree/master/src/xunit.runner.reporters. Is something similar possible with VSTest today? e.g. can I write a custom reporter and plug it into the VSTest host, or would this only be possible if VS Test itself adds this feature? |
There isn't auto detection on vstest side (yet). It is possible to write a custom logger which can detect the CI environment and integrate. A logger needs to implement See console logger and trx logger for example. |
Triage: |
This capability is currently done by the xUnit runner. We implement our own reporter extensibility mechanism that detects CI environment and interacts appropriately. An xUnit user can implement an interface and specify a command line option to pass in a custom reporter. |
Jenkins supports xUnit format and trx. The problem with trx is size - it's >10x larger than xunit format :(. I'd like to be able to use xunit format in |
Few CI reporters are available now:
Documentation for loggers are available here. |
Hey, are there plans to support Circle CI test runner? Look like they can parse test results in a specific format (see xunit/xunit#1882) |
dotnet-test-xunit and supported detecting CI build environments and reporting tests results in a format consumable by that CI environment. For example, building on AppVeyor and TeamCity would automatically light up test reporters.
How can we do the same thing with VS Test? Is it already possible?
The text was updated successfully, but these errors were encountered: