Launch and publish xUnit.net tests in the TFS 2008 build

I have an assembly of commands on the TFS 2008 server. I want it to run my xUnit.net tests and show the result in assembly details.

I know that I need to do a lot of configuration in the TFSBuild.proj script file. I have already managed to run the tests, but the result does not appear in the assembly. I followed the instructions of the blog mehfuz .

Looking at other similar question , I got to Post Jonne Kats . Unfortunately, this is partly outdated. There was a lot of workaround to overcome the lack of ExitCode in the xunit task. With xunit 1.7, this is no longer required.

It's hard for me to handle this. Can someone show me a way to publish test results in team build?


Update: I see that my question actually consists of many small questions. Let me make it more direct.

I am running the Xunit.Runner.MSBuild.xunit task. It is configured to create an XML file with a test report. To show this report in TFS build details, I need to import it using MSTest.exe . However, I must first convert it to a format that MSTest will understand.

Does anyone have an XSLT file that I could use to convert an xUnit XML report to an MSTest TRX file?

+4
source share
1 answer

Here's a very promising article: http://salvoz.com/blog/2010/02/22/transform-xunit-to-mstest/

Unfortunately, XSLT is a bit crippled by the blog engine, and I made no effort to get it to work.

0
source

Source: https://habr.com/ru/post/1344002/


All Articles