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 JaCoCo execution when we have additional Surefire options #1079

Merged
merged 4 commits into from
Apr 5, 2021

Conversation

gsmet
Copy link
Contributor

@gsmet gsmet commented Apr 4, 2021

Typically on Java 16.

Note that the build then fails with Javadoc warnings. Apparently, the Java 16 javadoc is a bit stricter. Not sure if we want to disable it for Java 16 for now or if someone wants to fix them (but there are a bunch of them and that would mean documenting very obvious stuff).

@@ -274,7 +278,7 @@
<id>default-test</id>
<configuration>
<excludesFile>src/test/resources/slow-or-flaky-tests.txt</excludesFile>
<argLine>${surefire.argLine}</argLine>
<argLine>@{jacoco.surefire.argLine} ${surefire.argLine}</argLine>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To explain what happened: we are setting our own arg line now and, if set, the JaCoCo agent doesn't inject its options.

The change injects again the JaCoCo options.

`enable-ci` doesn't make sense with `skipTests`.  
The point of this job is get quick results.
@bitwiseman bitwiseman merged commit 7c8a7ff into hub4j:master Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants