Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for .NET Framework / .xproj based projects that use ITestRunner interface #40

Closed
jcansdale opened this issue Aug 8, 2016 · 6 comments
Assignees
Milestone

Comments

@jcansdale
Copy link
Owner

jcansdale commented Aug 8, 2016

.NET Framework based projects should be able to work as they did before by simply referencing the test framework assembly (NUnit/xUnit/MSTest/etc). Only projects that target .NET Core should be required to use the new dotnet test / testRunner based test runners.

@jcansdale
Copy link
Owner Author

jcansdale commented Aug 8, 2016

Tests will be executed using the original test runner interface when:

  • There is no testRunner defined in project.json.
  • The first framework defined in frameworks is not .NET Core.

Otherwise both .NET Core and .NET Framework tests will be executed by the new "dotnet test" / "testRunner" interface. The Test With > .NET Framework and Test With > .NET Core commands will also use the new interface. This keeps testing as consistent as possible when testing using different frameworks.

@jcansdale
Copy link
Owner Author

Please give this build a try and let me know how you get on!

TestDriven.NET-4.0.3348_Extraterrestrial_Alpha.zip

@bradwilson
Copy link

That appears to work for running methods, classes via source, and classes via Solution Explorer, but not assemblies or solutions. But getting closer! :)

@jcansdale
Copy link
Owner Author

jcansdale commented Aug 8, 2016

Thanks for the catch. It's getting a bit ugly in places!

Could you give this one a try:
TestDriven.NET-4.0.3349_Extraterrestrial_Alpha.zip
(this one is obsolete -- see the link below)

@bradwilson
Copy link

Victory!

@jcansdale
Copy link
Owner Author

You can now download TestDriven.Net 3.0-beta from the website:
http://testdriven.net/download.aspx

I've also added some notes to this page:
https://github.com/jcansdale/TestDriven.Net-Issues/

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

No branches or pull requests

2 participants