Open
Conversation
Owner
|
👋 Thanks for the PR! There are two changes I'd like if you are still willing to contribute!
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! |
Contributor
Author
|
I'll update my PR soon |
Contributor
Author
|
Shouldn't we also add an nunit v3 test to ensure compabillity? |
Contributor
Author
|
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) |
Contributor
Author
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 |
|
Hello, any plans to release it? |
4edbdd5 to
6c2e2aa
Compare
Contributor
Author
|
@theramis I've squashed my commits, hopefully ci is happy this time 🤞 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change should now support NUnit v3 and v4, so would be nice to backport to Snapper v2.