-
Notifications
You must be signed in to change notification settings - Fork 2
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 testing 'Portable' Class Library projects #4
Comments
Are you also planning to support |
Also, right now our TD.NET runner is bound against the desktop CLR. Are you planning to support running tests in .NET Core as well? If so, how do I write my adapter to enable support for .NET Core? |
You should be able to test this with |
Yes, absolutely. I have ad-hoc test methods working already. :)
I'm planing to piggyback off the "dotnet test" runner stuff. I'll need a way to discover the extra parameters that need to be passed (e.g. dotnet test -method Class.Method). I welcome suggestions about how to handle this. Maybe this could be in a file called 'dotnet-test-xunit.tdnet.json' (next to the runner assembly). Alternatively, there could be a setting inside 'dotnet-test-xunit.runtimeconfig.json' (to avoid clutter).
Excellent, I can confirm that it works! Was there a reason you decided not to use the following: It will get run inside the desktop CLR and I assume |
I'm surprised. I expected you to ask people to code to your existing API, just with a .NET Core compatible API surface. Given that you're doing that, you should look at the special hooks already required by the Visual Studio test runner, and see if you can reuse them. They are noted here: |
I can confirm this works with xUnit 2.2.0-beta3. 👍 Doesn't work with the latest NUnit. 😢 |
This currently seems to work when running ad-hoc methods, but should also work with other runners (with a few tweaks).
For example, with xUnit, place the following TestDriven.Net configuration file:
...in your solution's NuGet folder:
packages\xunit.extensibility.core.*\lib\netstandard1.0\
Paging, @bradwilson
The text was updated successfully, but these errors were encountered: