-
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
Fix dependencies resolving logic for netcore assemblies #1316
Conversation
…ndenciesResolver class first, before to go to more advanced logic
Is this a replacement for #1315? If so, that one should be closed. |
Suggestion... The successful CI build shows that this does everything that the existing implementation already did but not that it does anything more. To show that, you could add some tests that failed before but pass now. Could be unit tests or possibly integration (i.e. package) tests. |
Sorry guys. My intension was to merge this fix into version3 and probably to trunk later, but git and github itself (why it cannot clone repository with all branches by default???), it's actually worst source control system I've ever worked. Feel free to create you own PR and merge my changes, might be with your own changes. |
@svg2003 Cloning does give you all branches but you have to use If I were doing this, I'd create a failing package test. To see how that happens, look at the package test definitions in build-settings.cake and how the tests are specified for each package in package-definitions.cake. There is a bit of a learning curve to cake, but it's still just C# code. If you come up with one or more test assemblies to use for testing, I'll be glad to walk you through the process more exactly. The test environment is currently only local (your machine) and AppVeyor. You run the CI locally yourself using the |
Seems "GitHub-desktop" app is more user friendly, and allowed me to clone repository with all branches, so I created one more PR for version3.0. And after, I tried to rollback my changes and add some similar test that I have failed before. Here is my test: namespace NUnit.Engine.Core.Tests.Internal
#pragma warning restore CA1416 // Validate platform compatibility During the build (build.cmd -t Test), it fails in Assert.IsTrue(false, "test"); line Errors, Failures and Warnings
But real issue is in 2 lines before, and when I'm using nunit-console.exe for that - I do see expected exception: nunit3-console.exe C:\Projects\nunit-console3\src\NUnitEngine\nunit.engine.core.tests\bin\Release\net6.0\nunit.engine.core.tests.dll Errors, Failures and Warnings
Run Settings |
@svg2003 that target framework looks a little suspicious to me. The right target for .NET 6 is |
Sorry, I don't get it, what do you mean "right framework". The idea is - test itself is built against net6 and executed during the build (build.cmd -t Test), because I do see it's failed in Assert.IsTrue(false). But it cannot catch original issue. |
@svg2003 sorry, I'm coming late and my observation might be entirely unrelated. While quickly glancing, I saw you noted;
My observation was that Again, sorry for the drive-by comments; they were only a quick observation at-a-glance. I see in your code you are indeed using |
@SeanKilleen @svg2003 "TargetRuntimeFramework netcore-6.0" is using NUnit's id for the runtime rather than the tfm. The id is used both internally and as an argument to the --framework option of the console runner. The plan was for this to go away when the |
based on discussion from here:
#1311