mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[GH-ISSUE #1349] Number of tests displayed is invalid #441
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#441
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 @carlos-ds on GitHub (Nov 29, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1349
Originally assigned to: @liyasthomas on GitHub.
Describe the bug
The number of tests for a request, which is displayed in the tab label (after receiving the response), is invalid.
To Reproduce
Add following script as a test for a GET request:
pw.test("Response is ok", () => { pw.expect(pw.response.status).toBe(200) })Expected behavior
The label for the tests tab displays "Tests • 1"
Screenshots

Desktop (please complete the following information):
@liyasthomas commented on GitHub (Nov 30, 2020):
Thanks for reporting the issue.
@liyasthomas commented on GitHub (Nov 30, 2020):
Number of tests makes no sense to me.
It would be better if we show the number of passed / failed test cases. Also there's an option to assert named tests, nested test functions etc. So currently there's no way to accumulate a proper test case number.
I'm temporarily removing the test case number shown on the tab label. Will look into this is there's a request for this feature.