-
Notifications
You must be signed in to change notification settings - Fork 790
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
Port NUnit based tests to Core CLR #690
Comments
Thank you, that would be awesome. You will have to make the tests build on coreclr first. Which is going to be an interesting challenge. Good luck. |
Have reached first hurdle well before looking at actually compiling on coreclr. I can't get the project to compile against Profile47 using xUnit.net. Is this surprising or expected? xUnit.net seems to support portable-net45+win8+wp8+wpa81, whereas Profile47 includes Silverlight 5 The workaround for a similar issue with FsCheck was to exclude those tests for 47, but I have a feeling that won't fly this time. Edit: Code so far is in this branch |
Also, @KevinRansom, I hope your comment yesterday wasn't intended to be encouraging, because it wasn't ;) |
xunit require .net desktop > 4.5 , we cannot use it for .net 3.5 |
why is this change of framework needed? |
see #688 ,
|
but that's only a fact not a real reason. |
yes, not ready yet but maybe we can meawhile upgrade nunit 2.1 -> 3.0, and wait for dnx support ref nunit/nunit#575 in the last bet5, there is support for coreclr (need build from sourcecode) see Release-Notes nunit-300-beta-5
Ihmo is better to stay on nunit, upgrade to 3.0 in main branch, port fsharp/fsharpqa to use nunit runner, and wait for full compatibility of nunit. |
@forki Where possible we will use the same tooling as dotnet and coreclr OSS projects. This allows us to leverage work they do. |
NUnit has a new PR nunit/nunit#915 that adds .NET core support. We still need to test on various platforms and get 3.0 out, but we are close 👍 |
Yes reusing other people's work is a good idea. But here we should be When nunit allows us to keep working with it, then I personally would not
|
Does xUnit.net 2 work with Mono? |
Yes latest mono versions should support latest xunit2.
|
@PatrickMcDonald It's worth investigating the coreclr implementation of nunit. I doubt that converting the specific test framework will be anywhere near as hard as making the tests work on coreclr. But nunit is perfectly decent framework. The main goal is really to get this stuff working cross platform on coreclr anyway. |
The NUnit support for CoreCLR already got merged to master. There is not a build with it in the NuGet Gallery yet. I just created this PR for them to add CI builds to the AppVeyor NuGet feed nunit/nunit#932. Until that happens, it is available in my feed: https://ci.appveyor.com/nuget/ctaggart-nunit |
NUnit is now 3.0 RC, from the release notes:
Does this mean that running CoreCLR unit tests will not be supported in NUnit 3.0 without writing a custom console app? |
@PatrickMcDonald, the In the meantime, you can reference NUnitLite making the tests themselves self-executable. All you need to do is add a couple of lines of code to Main and your tests are a console runner and tests all wrapped into one assembly. |
Closing old discussion |
coreclr status: https://github.com/Microsoft/visualfsharp/wiki/F%23-for-CoreCLR---Status
I can start looking at this task for the CoreCLR project
The text was updated successfully, but these errors were encountered: