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

Java UTs: Migrate to jUnit 5 #7595

Closed
4 tasks
pavel-mikula-sonarsource opened this issue Jul 13, 2023 · 2 comments
Closed
4 tasks

Java UTs: Migrate to jUnit 5 #7595

pavel-mikula-sonarsource opened this issue Jul 13, 2023 · 2 comments
Assignees
Labels
Area: SQ Plugin Java plugin related issues. Sprint: Hardening Fix FPs/FNs/improvements Type: Tests Add or modify individual UTs, ITs and Peach, not framework

Comments

@pavel-mikula-sonarsource
Copy link
Contributor

pavel-mikula-sonarsource commented Jul 13, 2023

Prerequisite: #7600

While we reference jUnit5, we execute them via junit-vintage-engine, effectively running them on jUnit5.

To migrate it, we need to rename jUnit annotation to the new ones and replace creation of resources same as in ITs.

This blogpost has some IntelliJ tricks how to make stuff in batches:
https://blog.jetbrains.com/idea/2020/08/migrating-from-junit-4-to-junit-5/

Same as #4223, we need to:

  • Update UTs - shared
  • Update UTs - C#
  • Update UTs - VB.NET
  • Remove junit-vintage-engine dependency
@mary-georgiou-sonarsource
Copy link
Contributor

Check also #9476

@mary-georgiou-sonarsource
Copy link
Contributor

#7863 -> Remove junit-vintage-engine dependency
#8033 -> Update Java UTs to Junit5

@mary-georgiou-sonarsource mary-georgiou-sonarsource closed this as not planned Won't fix, can't repro, duplicate, stale Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: SQ Plugin Java plugin related issues. Sprint: Hardening Fix FPs/FNs/improvements Type: Tests Add or modify individual UTs, ITs and Peach, not framework
Projects
None yet
Development

No branches or pull requests

2 participants