Skip to content
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 PR: Change NUnit v2 to v3 #286

Closed
savornicesei opened this issue Jan 19, 2020 · 9 comments
Closed

Fix PR: Change NUnit v2 to v3 #286

savornicesei opened this issue Jan 19, 2020 · 9 comments

Comments

@savornicesei
Copy link
Contributor

The existing PR #259 is mergeable BUT:

  • nunit references must be changed to NuGet ones
  • NUnit folder from Tools must be deleted
  • make sure tests run

This is a must for linux build

     [exec]   Core/SourceControl/Mercurial/StubFileSystemTest.cs(11,3): error CS0619: 'TestFixtureAttribute' is obsolete: 'The NUnit framework shipped with Mono is deprecated and will be removed in a future release. It was based on NUnit 2.4 which is long outdated. Please move to the NUnit NuGet package or some other form of acquiring NUnit.' [/data/Proiecte/OSS/CruiseControl.NET/CruiseControl.NET_2/project/UnitTests/UnitTests.csproj]
     [exec]   Core/Util/RegistryTest.cs(8,3): error CS0619: 'TestFixtureAttribute' is obsolete: 'The NUnit framework shipped with Mono is deprecated and will be removed in a future release. It was based on NUnit 2.4 which is long outdated. Please move to the NUnit NuGet package or some other form of acquiring NUnit.' [/data/Proiecte/OSS/CruiseControl.NET/CruiseControl.NET_2/project/UnitTests/UnitTests.csproj]
savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 21, 2020
- fix some broken tests
- detect latest MSBuild available
- fix cake script
@savornicesei
Copy link
Contributor Author

@RubenWillems, @obones, @mintsoft
Any ideas why I would have 4 tests failing in VS 2019 and 49 tests failing when running them from the build script (W10, VS2019 CE)?

Most of them are related to xml serialization - the namespaces are not in the expected order.
I've updated the build script to use the latest version of MSBuild available but somehow it still runs on 4.0!?! (it does not recognize ToolsVersion 15.0)
I have installed 4.0 SDK after VS2019 - I might do a VS2019 repair this evening just to be sure references or registries did not go bananas.

Any ideas are highly appreciated.

@RubenWillems
Copy link
Member

RubenWillems commented Jan 22, 2020 via email

savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 22, 2020
- fix identation in build script
- fix vswhere path
savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 22, 2020
- fix MSBuild detection
savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 22, 2020
- cleanup csproj files
- remove .gitignore files from subfolders
- bump appveyor vm to Visual Studio 2019
- add HTML Help Workshop to Tools so SHBF project can be built on W10
@mintsoft
Copy link
Contributor

@savornicesei I've seen that before when a reference is updated and has added a binding redirect to the app.config, however the tests haven't had that binding redirect applied as it needs to be added to the nunit runner's .config instead.

On AppVeyor https://ci.appveyor.com/project/ccnet/cruisecontrol-net/builds/30297266 it looks like it's actually working but the attribute order is different now. Is that the same as you're seeing in VS?

@savornicesei
Copy link
Contributor Author

savornicesei commented Jan 22, 2020

@mintsoft I'll check tomorrow the assembly bindings.
For the inversed xml namespaces I was thinking of trying FluentAssertion because it has some xml assertions. Here we don't care about the ns indexes, just about their existence.
https://fluentassertions.com/xml/

There are also 2 tests failing because the change datetimes do not match up to the last digit of the milisecond. Did they ever pass?

@mintsoft
Copy link
Contributor

@savornicesei

There are also 2 tests failing because the change datetimes do not match up to the last digit of the milisecond. Did they ever pass?

Which ones? I can't see that in the build output anywhere; there's only the 47 XML tests.

(I think last I built ccnet from source and ran all the tests on VS2015 all the tests were green, but it was a few years ago so I might be wrong)

@RubenWillems
Copy link
Member

RubenWillems commented Jan 23, 2020 via email

@savornicesei
Copy link
Contributor Author

savornicesei commented Jan 23, 2020

@RubenWillems , @mintsoft Thank you for your input!

Everything revolves around this ticket (looking at you, #271 ) so I want to get it done as soon as possible.
Feel free to code review it as the changes have larger scope than the one defined by the issue title.

savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 24, 2020
- fixed failing tests
- added FluentAssertions library
- compact build target in ccnet.build
- fixed assembly bindings errors in UnitTests project
@savornicesei
Copy link
Contributor Author

Uhh! Ohhh!
image

My greatest work's completed!

savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 26, 2020
- fix some broken tests
- detect latest MSBuild available
- fix cake script
savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 26, 2020
- fix identation in build script
- fix vswhere path
savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 26, 2020
- fix MSBuild detection
savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 26, 2020
- cleanup csproj files
- remove .gitignore files from subfolders
- bump appveyor vm to Visual Studio 2019
- add HTML Help Workshop to Tools so SHBF project can be built on W10
savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 26, 2020
- fixed failing tests
- added FluentAssertions library
- compact build target in ccnet.build
- fixed assembly bindings errors in UnitTests project
savornicesei added a commit to savornicesei/CruiseControl.NET that referenced this issue Jan 26, 2020
savornicesei added a commit that referenced this issue Mar 10, 2020
- fix some broken tests
- detect latest MSBuild available
- fix cake script
savornicesei added a commit that referenced this issue Mar 10, 2020
- fix identation in build script
- fix vswhere path
savornicesei added a commit that referenced this issue Mar 10, 2020
- fix MSBuild detection
savornicesei added a commit that referenced this issue Mar 10, 2020
- cleanup csproj files
- remove .gitignore files from subfolders
- bump appveyor vm to Visual Studio 2019
- add HTML Help Workshop to Tools so SHBF project can be built on W10
savornicesei added a commit that referenced this issue Mar 10, 2020
- fixed failing tests
- added FluentAssertions library
- compact build target in ccnet.build
- fixed assembly bindings errors in UnitTests project
savornicesei added a commit that referenced this issue Mar 10, 2020
@savornicesei
Copy link
Contributor Author

Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants