Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

XUnit in VS 2015 RC is not discovering tests. #108

Closed
matthewDDennis opened this issue Apr 29, 2015 · 7 comments
Closed

XUnit in VS 2015 RC is not discovering tests. #108

matthewDDennis opened this issue Apr 29, 2015 · 7 comments

Comments

@matthewDDennis
Copy link

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.

@vijayrkn
Copy link

@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

@davidfowl
Copy link
Member

/cc @bradwilson

@matthewDDennis
Copy link
Author

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.

@vijayrkn
Copy link

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.

@bradwilson
Copy link

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.

@bradwilson
Copy link

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.

@matthewDDennis
Copy link
Author

@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-*",

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants