Skip to content

Commit

Permalink
Integrating jacoco to get test coverage analysis in SonarCloud;
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasSchaub committed Dec 19, 2023
1 parent ee4c04d commit 58f0321
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -377,4 +377,37 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>coverage</id>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<configuration>
<formats>
<format>XML</format>
</formats>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ public class SugarRemovalUtilityCmdApplication {
* "0.5", "-linSugInRings", "false", "-linSugMinSize", "4", "-linSugMaxSize", "7", "-linAcSug", "false",
* "-circSugSpiro", "false", "-circSugKetoGroups", "false"};
*
* @param args see doc above for description of possible command-line arguments
* @throws IllegalArgumentException if any parameter does not meet the specified requirements
*/
public SugarRemovalUtilityCmdApplication(String[] args) throws IllegalArgumentException {
Expand Down

0 comments on commit 58f0321

Please sign in to comment.