Koos
Koos

Reputation: 39

make maven test goal fail when karate scenario fails

when running command 'mvn test' and there is failed scenarios Maven still reports the build is a success. how can you make the build fail when a scenario failsmvn test results

can anyone help me?

Upvotes: 2

Views: 477

Answers (2)

Koos
Koos

Reputation: 39

I managed to find a solution to my problem.

I used the run parallel technique instead of using the Runwith.

Upvotes: 0

pobu
pobu

Reputation: 402

You can do this by setting the test failure flag to false:

-Dmaven.test.failure.ignore=false

Upvotes: 1

Related Questions