Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Karate Abort test result fails instead of test skip #1172

Closed
beatrizlopez opened this issue Jun 13, 2020 · 1 comment
Closed

Karate Abort test result fails instead of test skip #1172

beatrizlopez opened this issue Jun 13, 2020 · 1 comment
Labels

Comments

@beatrizlopez
Copy link

Hi! I'm using karate.abort() feature but it seems that it is not working as expected.

Given the following scenario:

 * configure abortedStepsShouldPass = false
 * if (true) karate.abort()

In this case, the test result will be failed. The expected result should be skipped.

Given the following scenario:

 * configure abortedStepsShouldPass = true
 * if (true) karate.abort()

In this case, the test result will be passed. The expected result should be skipped.

I'm using:

  • Karate: v0.9.5.
  • Dependency: net.masterthought cucumber-reporting v3.8.0
  • Java Version - Open JDK 8 / 11
  • IntelliJ 2019.3.4

Maybe I'm understanding wrongly this feature, but I think the idea is when its fail return a skipped result.

Thanks a lot

@ptrthomas
Copy link
Member

@beatrizlopez sorry my understanding is abortedStepsShouldPass = false means it WILL be failed (depending on the version of cucumber reports)

please go through this carefully: #755 (comment)

if you still feel this has to be re-opened, you HAVE to follow this process: https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants