Skip to content

Commit 138e7fd

Browse files
author
Dassi Orleando
committed
Let the build failed if the test is not Ok
1 parent 3d49c4a commit 138e7fd

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

‎spring-jenkins-pipeline/pom.xml‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@
5050
<artifactId>maven-checkstyle-plugin</artifactId>
5151
<version>2.17</version>
5252
</plugin>
53-
<plugin>
54-
<groupId>org.apache.maven.plugins</groupId>
55-
<artifactId>maven-surefire-plugin</artifactId>
56-
<configuration>
57-
<testFailureIgnore>true</testFailureIgnore>
58-
</configuration>
59-
</plugin>
6053
</plugins>
6154
</build>
6255

‎spring-jenkins-pipeline/src/test/java/com/baeldung/SomeUnitTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
public class SomeUnitTest {
77
@Test
88
public void init() {
9-
assertEquals(1, 0);
9+
assertEquals(1, 1);
1010
}
1111
}

0 commit comments

Comments
 (0)