dnx - xUnit.net v2 not discovering .NET Core Tests in Visual Studio 2015 -


i frustrated issue. have tried changing version numbers no tests showing in test explorer.

in test output window can see output

starting microsoft.framework.testhost [c:\users\sul\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin\dnx.exe --appbase "path test project" microsoft.framework.applicationhost --port 63938 microsoft.framework.testhost --port 63954 list ] unable start microsoft.framework.testhost ========== discover test finished: 0 found (0:00:36.5471185) ========== 

this fragile, tests shown disappear good. restarting vs didn't help, reinstalling xunit/xunit runner didn't either.

in test project got different output still not tests showing

starting microsoft.framework.testhost [c:\users\sul\.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta4\bin\dnx.exe --appbase "path project" microsoft.framework.applicationhost --port 63938 microsoft.framework.testhost --port 64421 list ] connected microsoft.framework.testhost discovering tests in 'path project\project.json' ========== discover test finished: 0 found (0:00:35.9341416) ========== 

this part of project.json

"commands": {     "test": "xunit.runner.dnx"   },   "dependencies": {     "microsoft.aspnet.http": "1.0.0-*",         "microsoft.aspnet.http.core": "1.0.0-*",     "microsoft.aspnet.testhost": "1.0.0-*",         "moq": "4.2.1502.911",         "xunit": "2.0.0",     "xunit.runners": "2.0.0" 

i've had issues when using tfs. set , got working on 1 machine, went onto another, got latest code after checking in changes, showing correctly, test runner wasn't finding tests @ all. in end simple clean , rebuild on test project fixed , finds tests.

this project.json

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

note capital x in xunit listed in dependencies. official documentation lists lower case x, not work. i've emailed repo owner make him aware of this.

edit: i've spoken author of xunit assures me lower case x work him , others , it's potentially corrupted package cache.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -