Skip to content

Commit

Permalink
Adding codecov 100% check
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiancmello committed Dec 23, 2023
1 parent 3158c21 commit 3247e63
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
20 changes: 20 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,26 @@
<goal>report</goal>
</goals>
</execution>
<execution>
<id>jacoco-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>LINE</counter>
<value>COVEREDRATIO</value>
<minimum>100%</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/quickstart/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");

}
}
3 changes: 3 additions & 0 deletions src/test/java/org/quickstart/ExampleTest.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package org.quickstart;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;

public class ExampleTest {
@Test
public void nothing() {
Main.main(new String[]{});
Assertions.assertEquals(new Main().getClass().getSimpleName(), "Main");
}
}

0 comments on commit 3247e63

Please sign in to comment.