MSTest no xml output on .NET Core RC2

I aimed at dotnet-test-mstest": "1.0.1-previewthe dc2 core in my test project.

Edit: Good. I am targeting the .NET desktop. But that should not make any difference.

project.json

{
    "version": "1.0.0-*",

    "testRunner": "mstest",

    "dependencies": {
        "Betgame": "1.0.0-*",
        "dotnet-test-mstest": "1.0.1-preview",
        "MSTest.TestAdapter": "1.0.0-preview",
        "MSTest.TestFramework": "1.0.0-preview",
        "NETStandard.Library": "1.5.0-rc2-24027"
    },

    "frameworks": {
        "net461": { }
    }
}

at startup dotnet testit looks good!

enter image description here

How can I get the output as an xml file to handle this in my build process? Any ideas? Or is it not yet supported?

So far I have tried dotnet test -xml test-results.xml, but no way out has been created.

+4
source share
2 answers

Thanks for trying out the MSTest release. To generate a trx report (xml file) use the following command:

vstest.console.exe project.json /UseVsixExtensions:true /logger:trx

The report is created in the TestResults folder.

+6
source

dotnet-test-mstest, -xml . , .

+1

All Articles