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 running NUnit tests using .NET Core #6

Closed
jcansdale opened this issue Jul 12, 2016 · 5 comments
Closed

Add support for running NUnit tests using .NET Core #6

jcansdale opened this issue Jul 12, 2016 · 5 comments
Assignees
Milestone

Comments

@jcansdale
Copy link
Owner

No description provided.

@jcansdale jcansdale added this to the v4 milestone Jul 12, 2016
@jcansdale jcansdale self-assigned this Jul 12, 2016
@jcansdale
Copy link
Owner Author

jcansdale commented Jul 13, 2016

@rprouse, @CharliePoole,

I've finally got targeting NUnit tests with .NET Core working quite well. It uses the dotnet-test-nunit assembly for test execution and consumes its events.

netcore_nunit

If a target method doesn't have any custom attributes, it will execute it as an ad-hoc test. I'm sure there are things we can do to speed up test execution. You can see the ad-hoc test below only took 0.37 seconds. For example, Microsoft.Extensions.Testing.Abstractions is pretty heavy for something that chucks out a bunch of JSON messages. 😉

adhoc

Here's the installer if you fancy giving it a spin:

TestDriven.NET-4.0.3264_Extraterrestrial_Alpha.zip

@rprouse
Copy link

rprouse commented Jul 13, 2016

Nice, I will give it a try when I have a few spare minutes. 👍

@jcansdale
Copy link
Owner Author

@rprouse I had to make some tweaks to allow the development version of dotnet.test.nunit to run tests on itself (changes in the TestDriven.Net runner, not dotnet.test.nunit itself).

nunit_dogfood

Here is an updated version that supports dogfooding:

TestDriven.NET-4.0.3265_Extraterrestrial_Alpha.zip 🚀

@rprouse
Copy link

rprouse commented Jul 14, 2016

@jcansdale that is pretty cool, I will definately find time to try it now 👍

@jcansdale jcansdale modified the milestones: v4.0a, v4 Jul 20, 2016
@jcansdale
Copy link
Owner Author

@rprouse I've just pushed a new version with debugger support etc. to the website:
http://testdriven.net/download.aspx

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