Home > Software engineering >  how to make build success even the Test Case got failed?
how to make build success even the Test Case got failed?

Time:11-15

I am running a suite of APIs test cases which is build on maven Project. There are some failure in Test cases due to this my entire build is getting failed. how to make build success even the Test Case got failed. Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test

Maven build failure solution

CodePudding user response:

Hi Ankit Could you please share your maven commands?

CodePudding user response:

Adding -DskipTests to your maven build command will build without running the tests.

E.g: mvn clean install -DskipTests

CodePudding user response:

Pls try mvn clean verify serenity:aggregate -Dtags=smokesuite Dmaven.test.failure.ignore=true

Ref: baeldung.com/maven-ignore-test-results

  • Related