Skip to content

[dotnet] Future-proof for NUnit 4.x upgrade #14852

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

Closed
3 tasks done
RenderMichael opened this issue Dec 4, 2024 · 7 comments · Fixed by #14878
Closed
3 tasks done

[dotnet] Future-proof for NUnit 4.x upgrade #14852

RenderMichael opened this issue Dec 4, 2024 · 7 comments · Fixed by #14878
Labels
A-needs-triaging A Selenium member will evaluate this soon! C-dotnet .NET Bindings I-enhancement Something could be better

Comments

@RenderMichael
Copy link
Contributor

RenderMichael commented Dec 4, 2024

Feature and motivation

With the release of NUnit 4.x, a few major breaking changes have been added. We want our test suite to be able to be prepared for NUnit 4, even if we're not going to upgrade for a while yet.

@RenderMichael RenderMichael added I-enhancement Something could be better A-needs-triaging A Selenium member will evaluate this soon! labels Dec 4, 2024
Copy link

github-actions bot commented Dec 4, 2024

@RenderMichael, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

@nvborisenko nvborisenko changed the title [dotnet] Migrate tests to modern NUnit syntax [dotnet] Migrate tests to Assert.That(...) NUnit syntax Dec 4, 2024
@nvborisenko
Copy link
Member

Thanks, it is good initiative.

PS: I edited the goal to be achievable.

@nvborisenko
Copy link
Member

@RenderMichael Will it make sense to create one big PR? I will approve changes like Assert.Equal(...) -> Assert.That(...).

@RenderMichael
Copy link
Contributor Author

@nvborisenko I can make a massive PR, if that's preferable. I'll start adding more changes to #14853

@nvborisenko
Copy link
Member

If we can agree some rules before big boom. I expect ONLY Assert.That(...), no more new constructions (like Assert.Multiple).

@RenderMichael
Copy link
Contributor Author

The PR which migrates us to Assert.That is ready.

However, there are a few other things which block NUnit 4.x besides that. For example, the (..., string message, params string[] args) has been removed. I will have to go over a few other things after the big PR lands. Can this issue be renamed to something like "prepare for NUnit 4"?

@RenderMichael RenderMichael changed the title [dotnet] Migrate tests to Assert.That(...) NUnit syntax [dotnet] Future-proof for NUnit 4.x upgrade Dec 9, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators Jan 18, 2025
@RenderMichael RenderMichael added the C-dotnet .NET Bindings label Feb 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-needs-triaging A Selenium member will evaluate this soon! C-dotnet .NET Bindings I-enhancement Something could be better
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants