Serg-Norseman / GEDKeeper

GEDKeeper - program for work with personal genealogical database
https://gedkeeper.net/
GNU General Public License v3.0
156 stars 45 forks source link

[GKv3] Split unit test assemblies into Core and UI tests #470

Closed Serg-Norseman closed 1 year ago

hazzik commented 1 year ago

migrate to xUnit

Why?

Serg-Norseman commented 1 year ago

I couldn't get NUnit tests to work in VS 2022. To do this, I also have to keep VS 2019. This is inconvenient :(

Serg-Norseman commented 1 year ago

If I managed to get the NUnit Adapter into VS 2022 in any way, the transition can be canceled. I don't need it. Although NUnit seems to stop developing, and this is also a motive.

hazzik commented 1 year ago

Likely, you need to install NUnit3TestAdapter 4.3.0 or above

Serg-Norseman commented 1 year ago

Install without VS Manage Extensions? ok, I'll try

Serg-Norseman commented 1 year ago

This nuget is implied, as I understand it. And if the solution is maintained in its pure form without nuget dependencies?

hazzik commented 1 year ago

And if the solution is maintained in its pure form without nuget dependencies?

xUnit will likely require the same nuget dependencies

However, you can use it as just a library: https://github.com/nunit/nunit3-vs-adapter/releases/tag/V4.5.0

Serg-Norseman commented 1 year ago

I have included NUnit3TestAdapter 4.5.0 as a reference. Test Explorer shows 713 tests, but the Run All Tests button builds and nothing further happens, no tests are executed.

Serg-Norseman commented 1 year ago

Replaced the reference with the nuget package. The result is negative.

Serg-Norseman commented 1 year ago

It turned out that my tests were made on NUnit2. Horror. Updated to NUnit3. It is no longer possible to test GKv2 WinForms UI :( NUnitForms works only with NUnit2.