XUnit with TFS2015 and VisualStudio2015 doesn't find any test

I have an xUnit testing project with the following project.json:

"dependencies": {
  "xunit": "2.1.0-beta2-*",
  "xunit.runner.dnx": "2.1.0-beta2-*"
},

"commands": {
  "test": "xunit.runner.dnx"
},

"frameworks": {
  "dnx451": { },
  "dnxcore50": {
    "dependencies": {
      "System.Collections": "4.0.10-beta-22816",
      "System.Linq": "4.0.0-beta-22816",
      "System.Threading": "4.0.10-beta-22816",
      "Microsoft.CSharp": "4.0.0-beta-22816"
    }
  }
}

      

My Buildserver is capable of building everything correctly, but it gives me the following message while trying to test:

2015-05-17T18:41:26.0903225Z Warning: No test is available in C:\TfsData\Build\_work\c55817e8\...\artifacts\bin\

      

My Buildserver works with TFS2015 and I installed VisualStudio 2015RC . I found similar questions but only about TFS2013 which doesn't help me because TFS2015 doesn't have TestAgent. Currently xUnit- "Util" comes into NuGet via a json file.

Testing with VisualStudio works great even when installing VS Server.

Screenshot of Test Explorer inside VisualStudio

Can someone give me a hint on how to fix this issue please?

+3


source to share


1 answer


DNX support in Visual Studio likely didn't make it to TFS Build. It does not use the standard test detection of other xUnit.net test types, but rather what the ASP.NET team has added to Visual Studio to support unit tests in any project project.json

.



+1


source







All Articles