Fix surefire config so jacoco doesn't skip jacoco coverage

This commit is contained in:
dotasek 2022-01-14 20:49:26 -05:00
parent a3ff15484b
commit a99d39b89e
2 changed files with 22 additions and 0 deletions

View File

@ -235,6 +235,24 @@
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven_surefire_version}</version>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<excludes combine.children="override">
<exclude>org/hl7/fhir/validation/cli/services/ValidationServiceTest.java</exclude>
</excludes>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.basepom.maven</groupId>
<artifactId>duplicate-finder-maven-plugin</artifactId>

View File

@ -1,5 +1,7 @@
package org.hl7.fhir.validation.cli.utils;
import org.hl7.fhir.validation.cli.utils.Display;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import java.io.ByteArrayOutputStream;
@ -10,6 +12,7 @@ import static org.junit.jupiter.api.Assertions.*;
public class DisplayTests {
@Test
@DisplayName("Check for placeholder replacement in help output")
public void displayHelpDetails() {
final ByteArrayOutputStream outContent = new ByteArrayOutputStream();
final ByteArrayOutputStream errContent = new ByteArrayOutputStream();
@ -37,6 +40,7 @@ public class DisplayTests {
}
@Test
@DisplayName("Test replacePlaceholder base case")
public void testReplacePlaceholdersBaseCase() {
final String myTestString = "The {{DUMMY_A}} jumps over the {{DUMMY_B}}.";