-
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 .NET Core testing #3
Comments
It's possible that the |
It may be easier to see what the handshake would be like by seeing xUnit's side: https://github.com/xunit/dotnet-test-xunit It's a handful of JSON messages going back and forth. |
You're right, it's handy there is a standard wire protocol for dotnet core testing. Hopefully there is a standard naming convention for tests as well. I look forward to getting this working. :) |
Looks like the 'Microsoft.Extensions.Testing.Abstraction' package on NuGet could be useful as well. Crazy number of dependencies though! Also, the NUnit runner for .NET Core: |
Current version of TestDriven.Net can't see assembly for .xproj projects. I believe the following should work:
|
I'm wondering what the best way to detect a .NET Core assembly from for a classic .NET application. I can load the .NET Core assembly fine and reflect on it. If an assembly references "System.Runtime", is that a clear indication that it's a .NET Core assembly? Is "System.Runtime" the .NET Core equivalent of mscorlib? |
https://twitter.com/bradwilson/status/749613448565104640 I'll maybe look for the following instead: |
Picking up from conversation with @bradwilson at #4.
I'm planning to initially make it compatible with this interface. I've done some experiments and it looks like the following should work (same with
There are definitely optimizations that would make it faster (
This is pretty much what I've done with the ad-hoc runner. It would certainly make sense to clean this up and allow people to implement as an alternative to the VS interface (say with a -tdnet switch). This would make tests run faster because there's no need to use the symbol reader or pull in so many dependencies! I might make it a single source file that could be compiled as part of 'dotnet.test.xunit'. |
TestDriven.NET-4.0.0_Extraterrestrial_Alpha.zip I have finally got support for running ad-hoc test methods working with .NET Core. It doesn't know about xUnit or NUnit tests yet, but this is a good start. Please give the attached (above) installer a try and let me know how you get on! Simply target any .NET Core method (or property) and 'Run Test(s)'. 'Test With > Debugger' doesn't work yet. You can also return an object and it will dump its properties and fields. 🚀 |
.NET Core CLI test communication protocol
https://docs.microsoft.com/en-us/dotnet/articles/core/tools/test-protocol
The text was updated successfully, but these errors were encountered: