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 to Nunit4 #2705

Merged
merged 9 commits into from
Aug 12, 2024
Merged

Migrate to Nunit4 #2705

merged 9 commits into from
Aug 12, 2024

Conversation

jnyrup
Copy link
Contributor

@jnyrup jnyrup commented Jul 19, 2024

The first commit migrates from from NUnit3 to NUnit4.

All the changes to the new Assert.That syntax (Called the constraint model) where done automatically by the added NUnit.Analyzers.
Their list of analyzers.

In the second commit I went through the warnings from NUnit1028 which warns about public methods in test classes that are not marked with [Test].
I've blindly added [Test] to all those that had asserts in them.

@kblok
Copy link
Member

kblok commented Jul 19, 2024

All the changes to the new Assert.That syntax (Called the constraint model) where done automatically by the added NUnit.Analyzers.

I'm glad that you didn't have to do that manually!

@kblok
Copy link
Member

kblok commented Jul 19, 2024

I would try to land this soon. And we could work in some improvements later.
I don't want to conflict this PR on every change.

@jnyrup
Copy link
Contributor Author

jnyrup commented Aug 6, 2024

@kblok the new NUnit analyzers pointed out methods that contained assertions, but weren't annotated with [Test].
I've added those annotations in 9e18877 but I could use help figuring out how they should be annotated.

We could cherry-pick that commit to another PR with other changes necessary to have them pass on master as well.

README.md Outdated Show resolved Hide resolved
@jnyrup jnyrup marked this pull request as ready for review August 12, 2024 14:55
@kblok
Copy link
Member

kblok commented Aug 12, 2024

@jnyrup do you think we can land this?

@jnyrup
Copy link
Contributor Author

jnyrup commented Aug 12, 2024

I don't have any pending changes.

There's a failing tests with an NRE, I haven't looked into the cause of that, but I guess it's unrelated to this PR.

@kblok kblok merged commit 9fff3c0 into hardkoded:master Aug 12, 2024
12 checks passed
@jnyrup jnyrup deleted the nunit4 branch September 9, 2024 17:00
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.

2 participants