mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #5069] [feature]: Support early exit of test script #1929
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#1929
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wonson on GitHub (May 13, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5069
Is there an existing issue for this?
Summary
Basic abort:
return;throw pwAbortScript();throw pwAbortCollection(3);``throw pwAbortTest;Advance abort:
pw.expect(..).toBe(..)andpw.test(...)returns boolso that we can do
if (pw.test(...) != true) { throw pwAbortScript(); }Why should this be worked on?
While checking the response code / result is not as expected,
I don't need the further checking or setting env below
Better it can also abort at different levels (this script only, the collection, 2 level collections, whole test set) as well