mardi 1 septembre 2015

Test Explorer not discovering Xunit tests [VS 15]

I am currently running VS 2015 Enterprise edition. My global.json file is as follows:

{
  "projects": [ "src"],
  "sdk": {
    "architecture": "x86",
    "runtime": "coreclr",
    "version": "1.0.0-beta6"
  }
}

My test project file uses the following references:

    "xunit": "2.1.0-beta4-*",
    "xunit.runner.dnx": "2.1.0-beta4-*"
  },
  "commands": {
    "test": "xunit.runner.dnx -xml testresults.xml"
  },

Test Explorer does not discover my test files. I am also using Resharper v9.2. It does discover my test files; however, I get an inconclusive message and a message that reads: Unable to run xUnit.net tests - File not found: {solution path}\artifacts\bin{Project Name}{Project Name}.dll.

One additional thing. I am frequently getting a dnx.exe crash when I build my test project.

Any suggestions on how to resolve this problem?

Thanks.

Aucun commentaire:

Enregistrer un commentaire