No tests executed, so no coverage.
In build log you have
[INFO] Tests are skipped.
which is probably due to -DskipTests
in your .github/workflows/build.yml
run: mvn -B clean package -DskipTests
Execution of mvn test
produces
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ bridge ---
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
because you have junit-jupiter
in dependencies,
but don’t have junit-vintage-engine
(see output of mvn dependency:tree
),
while your tests are written using JUnit 4.
After the following removal of exclusion of junit-vintage-engine
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
+ <!--
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
+ -->
Execution of mvn test
produces
[INFO] Tests run: 47, Failures: 0, Errors: 0, Skipped: 0
and the following report
CLICK HERE to find out more related problems solutions.