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

Fix execution of unit tests with Maven #15

Merged
merged 3 commits into from
Dec 11, 2023
Merged

Fix execution of unit tests with Maven #15

merged 3 commits into from
Dec 11, 2023

Conversation

utarwyn
Copy link
Member

@utarwyn utarwyn commented Dec 10, 2023

As discussed in #10 and #12, there is an issue with the coverage of this plugin. In fact, the problem is that some tests aren't run via Maven: they haven't been migrated to JUnit 5 (Jupiter). What's surprising is that Intellij doesn't complain about it, so it wasn't easy to spot. So, what I have done in this PR:

  • Import org.junit.jupiter.api.Test (JUnit 5) instead of org.junit.test (JUnit 4) in test files
  • Optimize shaded jar (based on what I have done in ecoCode-javascript, jar is now 87ko instead of 132ko)
  • Upgrade few testing dependencies

Tests are OK on my local SonarQube.
Resolves #12

@utarwyn utarwyn added 🏗️ refactoring refactoring for best practices 💉 bug Something isn't working labels Dec 10, 2023
@utarwyn utarwyn requested a review from dedece35 December 10, 2023 21:50
@utarwyn utarwyn self-assigned this Dec 10, 2023
CHANGELOG.md Outdated Show resolved Hide resolved
@utarwyn utarwyn requested a review from dedece35 December 10, 2023 22:37
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@utarwyn utarwyn merged commit 495ff35 into main Dec 11, 2023
3 checks passed
@utarwyn utarwyn deleted the fix-unit-tests branch December 11, 2023 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏗️ refactoring refactoring for best practices 💉 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Coverage to 0% on the main or PR branches
2 participants