You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a log4j2.xml in the src/test/resources to turn on debug logging during JUnit tests to ensure all code paths are executed. When I try to upgrade to Quarkus 2.7 or higher (I've tried with 2.8.2.Final also), the tests are no longer run with debug logging. This is evident via the jacoco task showing all lines are no longer covered.
Is there a new way I should be going about enabling debug logging during JUnit tests?
Expected behavior
Successful jacocoTestCoverageVerification task (all lines are covered)
Actual behavior
Jacoco failure: lines covered ratio is 0.9, but expected minimum is 1.0
Describe the bug
I have a
log4j2.xml
in thesrc/test/resources
to turn on debug logging during JUnit tests to ensure all code paths are executed. When I try to upgrade to Quarkus 2.7 or higher (I've tried with2.8.2.Final
also), the tests are no longer run with debug logging. This is evident via the jacoco task showing all lines are no longer covered.Is there a new way I should be going about enabling debug logging during JUnit tests?
Expected behavior
Successful
jacocoTestCoverageVerification
task (all lines are covered)Actual behavior
Jacoco failure:
lines covered ratio is 0.9, but expected minimum is 1.0
How to Reproduce?
Reproducer:
service1
in https://github.com/mweber03/quarkus-test./gradlew service1:build
./gradlew service1:jacocoTestCoverageVerification
(succeeds)gradle.properties
to 2.7 or higherOutput of
uname -a
orver
Ubuntu 20.04
Output of
java -version
OpenJDK 11.0.11
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.5, 2.8.2
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.4.2
Additional information
No response
The text was updated successfully, but these errors were encountered: