-
Notifications
You must be signed in to change notification settings - Fork 152
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
Enable nullable #1580
Enable nullable #1580
Conversation
I cancelled the build that had been running for five hours. It was hung up on the first unit test run. Are you able to run the build locally? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that this is WIP I've merely commented. You've done a lot of work here and there's nothing that doesn't improve the code. Thanks.
I'll next download your branch and see if I can discover what's breaking the CI.
@@ -26,7 +26,7 @@ internal NUnitEngineNotFoundException(Version minVersion) | |||
{ | |||
} | |||
|
|||
private static string CreateMessage(Version minVersion = null) | |||
private static string CreateMessage(Version? minVersion = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you make the change suggested for TestEngine Activator, you can delete this method and the constructor that takes a minimum version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, but note that this Exception doesn't seem to be thrown anywhere from this repository,
@@ -20,6 +20,7 @@ public ExtensionAssembly(string filePath, bool fromWildCard) | |||
AssemblyVersion = Assembly.Name.Version; | |||
} | |||
|
|||
#if ACTUALLY_USED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests are apparently in some other branch or have been deleted. I'll try to find out.
I cannot run tests from VS making debugging harder. When running
After that, the net462 tests pass, but the netcore tests hang. That got me a bit further, until a |
Suggestion about the build... verify that you can run it on main branch to see if the problems arise only in your modified branch. Normal command I use is I'll look your commits in the morning. It's 2:00am here but I'm temporarily awake. Do you want to chat a bit? I'd like to figure out a good way to have me make changes without causing you enormous conflicts. If you don't see this right away, I'll be back in bed, however. :-) |
The targets in build.cake depend on the older cake files I had you remove. I should have said to remove those as well. I'm pretty sure that the condition you are seeing with the logs doesn't exist in the original main branch but I'll check in the morning as I'm not really alert enough to do it now. |
Set |
bdbb0ce
to
3dfc608
Compare
Remarks on NUnit.Engine:
|
3dfc608
to
1cc68f0
Compare
Comments on NUnitConsole I had a de-ja-vu experience and a hard time finding any differences between nunit4-console and nunit4-netcore-console! The The class uses the
|
@CharliePoole This is ready for review. I have tried to do the minimum of changes to comply with nullability. I have followed your pattern of referencing a file as link when needed in the console instead of referencing the library it is in. |
At this point, I'd like to get all your work merged so we can move on from there. Let's do issues on some of these, as well as your earlier comments, so they aren't forgotten. I'll go ahead and create themt using your comments as a start. Please chime in on the issues while it's fresh in your mind if you think more info is needed on any of them.
Probably an ISSUE - My thinking here was that our code doesn't exercise the parser in parallel at all. However, there is an existing issue calling for parallel test discovery, which would result in that happening, so this would be good to fix. Of course, if any of our tests won't work if run in parallel, then we probably ought to document that by using `[NonParalellizable].
Possible ISSUE. I'll review the code.
ISSUE, possibly in combination with item 4.
ISSUE on initialization order. I've considered requiring services to state their dependencies declaratively, which would allow the service manager to discover the order. However, my experience is that almost all users simply use our default initialization..
I'll look at the fix and only file an ISSUE if it seems needed.
The removal is coming in #1578 once this is merged.
Sorry about all these... I had planned to remove the duplicate code before you got to the console. The duplication is a temporary stage on the way to separating the two runners.
ISSUE. Ideally they should not have varied. I'll check that out. The class is big because the author intended it to be used in source form. In fact it was once a single file IIRC. The question in my mind is whether to rewrite it entirely at this point.
Agreed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing this. It was quite a lot to go through. I'll merge and follow-up further if I run into any problems trying to rebase my own large change.
Progress towards #1539
nunit.engine.api
nunit.engine.core
nunit.engine.core.tests