-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
introduce configure abortSuiteOnFailure so that test suite can stop on first failure #2090
Comments
thinking aloud there should be logic and a setting to stop the entire suite on the first failure |
|
Could be interesting if there’s a way to force a certain feature to be the first one to run and then conditionally fail the entire suite? I’m thinking a pre condition for the rest of the tests, almost a classic smoke test to ensure your environment is good to go. I’m sure there are ways to achieve this programmatically but don’t think there’s a pure karate way |
@joelpramos good point. I think the karate-way to do that would be a |
Could we lean in more into tags and having a @beforeSuite or something for the feature file? or, assuming you meant a callSingle from karate-config, another JS option introduced at the end of that chain for this behaviour the concept does sound useful and something I’ve seen done in shell scripts or in bit of hacky way |
@joelpramos yes I meant calling but I see where you are coming from. it can be argued that what I really am not looking forward to do is
for now I propose we keep this simple and consider adding a |
selfishly not my preference but that is the quickest easiest path which will work for most people For your questions, my thoughts for future reference:
My first thoughts would literally be chaining this in the |
Was looking into some sections today and the When refactoring, do you mind making that accessible from the caller of |
@joelpramos the suite is designed to be immutable, if you want the suite you can always do |
I was trying to do the goal of this issue but in a hacky way but unfortunately I had no way to access the |
@joelpramos yeah, maybe the Runner should return a |
1.3.0 released |
has been requested a few times in the last 5 years, and makes sense to me. for example this stack overflow q: https://stackoverflow.com/q/73385367/143475
so the idea is to set a suite-level flag and check its state before commencing any scenario, that should do it
The text was updated successfully, but these errors were encountered: