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

Maven cli don't run any test #119

Open
hiimjako opened this issue Feb 2, 2023 · 0 comments
Open

Maven cli don't run any test #119

hiimjako opened this issue Feb 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@hiimjako
Copy link

hiimjako commented Feb 2, 2023

Hi, I've encountered a problem running the test in the template.
After following the README.md for initialization once you get to mvn test, the cli doesn't find any test to run, although there are preset ones, returning this message:

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

I've found online some blog about this problem, and it seems a problem about the springboot and junit dependences version.

I solved it temporarily by adding the org.junit.vintage dependency to the maven pom.xml and excluding the org.junit.jupiter in the org.springframework.boot dependency, as stated in the blog linked above.

However, I was thinking whether it was better to upgrade the template to support junit 5, or whether there was a more suitable way to solve the problem.

Thanks

@hiimjako hiimjako added the bug Something isn't working label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant