-
Notifications
You must be signed in to change notification settings - Fork 105
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
Added support for skipping request execution through script #1354
Conversation
d49315f
to
a9bb7c1
Compare
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## develop #1354 +/- ##
===========================================
+ Coverage 78.59% 78.73% +0.14%
===========================================
Files 45 45
Lines 3298 3316 +18
Branches 943 947 +4
===========================================
+ Hits 2592 2611 +19
+ Misses 706 705 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Test failures are expected until sandbox version bump. |
originalContextOnHandler.call(context, eventName, function () { | ||
const cursor = arguments && arguments[0]; | ||
|
||
if (cursor && cursor.execution && isExecutionSkipped(cursor.execution)) { return; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@codenirvana FYI This approach introduces a risk for any new event introduced in sandbox, that does not emit cursor as its first argument.
Added support for
pm.execution.skipRequest()