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

Migrate from ApprovalTests to Verify #25

Merged
merged 2 commits into from
May 31, 2024

Conversation

MattKotsenas
Copy link
Collaborator

@MattKotsenas MattKotsenas commented May 31, 2024

Migrate from ApprovalTests to Verify. The change was entirely mechanical with no manual changes required:

  1. Replace NuGet packages
  2. Remove [UseReporter]
  3. Replace void in test signature with Task
  4. Replace Approvals.Verify with return Verify
  5. Replace *.approved.txt with *.verified.txt
  6. Deleted *.approved.txt.bak files, which appear to be leftovers from a Visual Studio migration in commit d64e270

Verify makes use of implicit usings, so I enabled:

  • C# 12
  • Implicit Usings
  • Nullable reference types

via a .props file. This introduces new warnings about nullability. I'm leaving those for cleanup in another PR.

Fixes #12.

@MattKotsenas
Copy link
Collaborator Author

If we want to be sticklers about the warnings I can back out the compiler flags change and do it separately. However I assume we'll want those soon anyways. Let me know.

@MattKotsenas
Copy link
Collaborator Author

@rjmurillo this is ready for review / merge

@rjmurillo rjmurillo merged commit 9d37487 into rjmurillo:master May 31, 2024
4 checks passed
@rjmurillo rjmurillo added this to the Next Major Release milestone May 31, 2024
@MattKotsenas MattKotsenas deleted the refactor/migrate-verify branch June 6, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate from ApprovalTests to Verify
2 participants