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

feat: support NUnit v4 #110

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

viceice
Copy link
Contributor

@viceice viceice commented Feb 7, 2024

@theramis
Copy link
Owner

👋 Thanks for the PR!

There are two changes I'd like if you are still willing to contribute!

  1. The build is failing, so that will need fixing
  2. Update Snapper.TestFrameworkSupport.Tests and Snapper.Nunit.Tests to use Nunit 4.

Let me know if you are wanting to make these changes or if not I'd be happy to put up a PR to support Nunit 4!

@viceice
Copy link
Contributor Author

viceice commented Feb 12, 2024

I'll update my PR soon

@viceice
Copy link
Contributor Author

viceice commented Feb 12, 2024

Shouldn't we also add an nunit v3 test to ensure compabillity?

@viceice
Copy link
Contributor Author

viceice commented Feb 12, 2024

The failed tests are unrelated to my changes. i also see them failing locally when running the tests a second time. then two snapshots are changed (at least on windows)

@viceice
Copy link
Contributor Author

viceice commented Feb 12, 2024

diff --git a/project/Tests/Snapper.Tests/_snapshots/SnapperSnapshotsPerClassTests.json b/project/Tests/Snapper.Tests/_snapshots/SnapperSnapshotsPerClassTests.json
index 2086477..786ffda 100644
--- a/project/Tests/Snapper.Tests/_snapshots/SnapperSnapshotsPerClassTests.json
+++ b/project/Tests/Snapper.Tests/_snapshots/SnapperSnapshotsPerClassTests.json
@@ -6,7 +6,8 @@
     "TestValue": "isUpdated"
   },
   "SnapshotsDoNotMatch_SnapshotsDoNotMatchException_IsThrown": {
-    "TestValue": "value"
+    "TestValue": "value",
+    "NewValue": "newvalue"
   },
   "TheorySnapshotsMatch": {
     "1": {
@@ -18,5 +19,8 @@
     "3": {
       "TestValue": 3
     }
+  },
+  "SnapshotDoesNotExist_And_IsCiEnv_SnapshotDoesNotExistException_IsThrown": {
+    "TestValue": "value"
   }
 }
\ No newline at end of file
diff --git a/project/Tests/Snapper.Tests/_snapshots/SnapperSnapshotsPerMethodTests_SnapshotsDoNotMatch_SnapshotsDoNotMatchException_IsThrown.json b/project/Tests/Snapper.Tests/_snapshots/SnapperSnapshotsPerMethodTests_SnapshotsDoNotMatch_SnapshotsDoNotMatchException_IsThrown.json
index a23fc7f..c27a153 100644
--- a/project/Tests/Snapper.Tests/_snapshots/SnapperSnapshotsPerMethodTests_SnapshotsDoNotMatch_SnapshotsDoNotMatchException_IsThrown.json
+++ b/project/Tests/Snapper.Tests/_snapshots/SnapperSnapshotsPerMethodTests_SnapshotsDoNotMatch_SnapshotsDoNotMatchException_IsThrown.json
@@ -1,3 +1,4 @@
 {
-  "TestValue": "value"
+  "TestValue": "value",
+  "NewValue": "newvalue"
 }
\ No newline at end of file

@PavelFischerCoupa
Copy link

Hello, any plans to release it?

@DavidArno
Copy link

@theramis, how can this PR be unstuck, please? If tests are failing, but @viceice is saying they are unrelated to the PR, then this change seems likely to remain in limbo for all time as there's no way forward.

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

Successfully merging this pull request may close these issues.

Support NUnit v4
4 participants