[GH-ISSUE #1349] Number of tests displayed is invalid #441

Closed
opened 2026-03-16 15:19:42 +03:00 by kerem · 2 comments
Owner

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
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
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** ![image](https://user-images.githubusercontent.com/20499950/100554317-2c9d7f80-3294-11eb-9b92-0e6c8da23022.png) **Desktop (please complete the following information):** - OS: Windows - Browser: Chrome
kerem 2026-03-16 15:19:42 +03:00
  • closed this issue
  • added the
    bug
    minor
    labels
Author
Owner

@liyasthomas commented on GitHub (Nov 30, 2020):

Thanks for reporting the issue.

<!-- gh-comment-id:735481868 --> @liyasthomas commented on GitHub (Nov 30, 2020): Thanks for reporting the issue.
Author
Owner

@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.

<!-- gh-comment-id:735511658 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#441
No description provided.