aspnet/Testing

XUnit in VS 2015 RC is not discovering tests.

matthewDDennis opened this issue · 7 comments

Had to add a NuGet source of myget.org/xunit to get the dependencies for xunit.runner.aspnet.
However the tests decorated with [Fact] are not being discovered.

@matthewDDennis
Can you confirm what version of xunit.runner.aspnet was restored to the project?
You can add this to your NuGet source: https://www.myget.org/F/aspnetrelease/ and use this version of xunit aspnet runner and it should work: 2.0.0-aspnet-beta4-10266

That is the version I attempted to include, but it has a dependency on "xunit.abstractions": "2.0.0-rc3-*" which isn't in that repository.

For VS 2015 RC, you should be using the beta4 version of the runner (2.0.0-aspnet-beta4-10266) because the TestHost that gets restored needs to be compatible with the runtime version.

This will not be officially supported until we ship xUnit 2.1 Beta 2.

If you want to use CI builds in the interim, you're welcome to use our MyGet feed: https://www.myget.org/F/xunit/

Be aware that the runner package has been renamed to xunit.runner.dnx.

For VS 2015 RC, you should be using the beta4 version of the runner (2.0.0-aspnet-beta4-10266)

This is not supported. Please don't ever tell anybody to use your hacked up runners.

@bradwilson Thanks!! That did the trick.
I did the following, and after fixing a bad test, success:

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