Feedback on early versions of NUnit 4 #4437
Replies: 5 comments 21 replies
-
Nooo... 🥺 Maybe I cannot really justify that in my open-source libraries I still support .NET Core 2.0 but .NET Framework 3.5 is still going to be officially supported at least until 2029. So please, bring back .NET Framework 3.5 and .NET Standard 2.0 support because I really don't want to migrate to some other testing framework. Furthermore Considering that you can do almost everything by the high-level (aka. classic) asserts now 99% of our tests don't compile on v4. Though a simple Replace All can solve this problem, the naming 'classic'/'legacy' suggests that this way is now deprecated and we should rewrite almost all of our tests anyway so the voices are increasing in a couple of projects that maybe it's time to move to xUnit. Back then I successfully convinced them that calling a parameterless test 'fact' but a parameterized one 'theory' is simply not obvious enough to me but unless you put back the high level asserts to |
Beta Was this translation helpful? Give feedback.
-
These will be confusing as the descriptive message will be for the constraint method called by NUnit4 classic assert wrapper. ClassicAssert.AreEqual(3.1415926, Math.PI, 1e-9, "Pi"); Will give the following message, where the descriptive part is not in any way related to your code:
If (auto) converting to the constraint model:
The message is directly related to the code:
|
Beta Was this translation helpful? Give feedback.
-
Have a question about #4389 feature ( |
Beta Was this translation helpful? Give feedback.
-
First impressions after migration process (no test runs yet).
Signature of new API has following parameters: [Formattable/NUnit]String message,
[CallerArgumentExpression(nameof(actual))] string actualExpression = "",
[CallerArgumentExpression(nameof(expression))] string constraintExpression = ""` Which results in two situations:
It will help to have analyzer to detect use of |
Beta Was this translation helpful? Give feedback.
-
In my opinion, NUnit 4 is a failure. Deprecating essentially ALL existing Asserts means either:
I don't have any issue with the addition of new assert types. I just don't use them. |
Beta Was this translation helpful? Give feedback.
-
This thread is for anyone to give their feedback on the developer and upcoming alpha versions of version 4.
See Towards NUnit4 for details.
The early version can be found on our Myget package feed: https://www.myget.org/F/nunit/api/v3/index.json
The current version is:
<PackageReference Include="NUnit" Version="4.0.0-dev-07969" />
Beta Was this translation helpful? Give feedback.
All reactions