From a99d39b89e2d6b21636759646e67e114378c1e49 Mon Sep 17 00:00:00 2001 From: dotasek Date: Fri, 14 Jan 2022 20:49:26 -0500 Subject: [PATCH] Fix surefire config so jacoco doesn't skip jacoco coverage --- org.hl7.fhir.validation/pom.xml | 18 ++++++++++++++++++ .../validation/cli/utils/DisplayTests.java | 4 ++++ 2 files changed, 22 insertions(+) diff --git a/org.hl7.fhir.validation/pom.xml b/org.hl7.fhir.validation/pom.xml index 12e710e29..13d7bc685 100644 --- a/org.hl7.fhir.validation/pom.xml +++ b/org.hl7.fhir.validation/pom.xml @@ -235,6 +235,24 @@ + + maven-surefire-plugin + ${maven_surefire_version} + + + default-test + test + + test + + + + org/hl7/fhir/validation/cli/services/ValidationServiceTest.java + + + + + org.basepom.maven duplicate-finder-maven-plugin diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/cli/utils/DisplayTests.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/cli/utils/DisplayTests.java index d70b7aae0..1ec8d8263 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/cli/utils/DisplayTests.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/cli/utils/DisplayTests.java @@ -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}}.";