From 138e7fd492bbd611603ef2423c272a260563a2e8 Mon Sep 17 00:00:00 2001 From: Dassi Orleando Date: Thu, 30 Nov 2017 05:52:28 +0100 Subject: [PATCH] Let the build failed if the test is not Ok --- spring-jenkins-pipeline/pom.xml | 7 ------- .../src/test/java/com/baeldung/SomeUnitTest.java | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/spring-jenkins-pipeline/pom.xml b/spring-jenkins-pipeline/pom.xml index 5ebc7540d6..1c35f0f73b 100644 --- a/spring-jenkins-pipeline/pom.xml +++ b/spring-jenkins-pipeline/pom.xml @@ -50,13 +50,6 @@ maven-checkstyle-plugin 2.17 - - org.apache.maven.plugins - maven-surefire-plugin - - true - - diff --git a/spring-jenkins-pipeline/src/test/java/com/baeldung/SomeUnitTest.java b/spring-jenkins-pipeline/src/test/java/com/baeldung/SomeUnitTest.java index 1e0fc985c3..ea317ed7cd 100644 --- a/spring-jenkins-pipeline/src/test/java/com/baeldung/SomeUnitTest.java +++ b/spring-jenkins-pipeline/src/test/java/com/baeldung/SomeUnitTest.java @@ -6,6 +6,6 @@ import static org.junit.Assert.*; public class SomeUnitTest { @Test public void init() { - assertEquals(1, 0); + assertEquals(1, 1); } }