[PR #4622] Hoppscotch Test Enhancements: Numeric & Response time Assertions #4874

Open
opened 2026-03-17 02:22:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4622
Author: @praveenk-78
Created: 12/17/2024
Status: 🔄 Open

Base: mainHead: main


📝 Commits (9)

  • 9114a45 changes related to test enhancement for #4620
  • ccc7948 Merge branch 'hoppscotch:main' into test-enhancements
  • 9621e82 Merge pull request #1 from praveenk-78/test-enhancements
  • 30872bc Merge branch 'hoppscotch:main' into main
  • cd4dbb0 Merge branch 'hoppscotch:main' into test-enhancements
  • cc82f46 added response duration for runner
  • 7e84c48 Merge pull request #2 from praveenk-78/test-enhancements
  • 2204481 Merge branch 'hoppscotch:main' into main
  • cb4a7db Merge branch 'hoppscotch:main' into main

📊 Changes

5 files changed (+69 additions, -2 deletions)

View changed files

📝 packages/hoppscotch-common/src/helpers/RequestRunner.ts (+2 -0)
📝 packages/hoppscotch-common/src/helpers/terndoc/pw-test.json (+7 -2)
📝 packages/hoppscotch-common/src/helpers/testSnippets.ts (+7 -0)
📝 packages/hoppscotch-js-sandbox/src/node/test-runner.ts (+4 -0)
📝 packages/hoppscotch-js-sandbox/src/shared-utils.ts (+49 -0)

📄 Description

Closes #4620

What's changed

Implemented test methods for the following

  • toBeGreaterThan
  • toBeLessThan
  • toBeGreaterThanOrEqual
  • toBeLessThanOrEqual

Also, added assertion for response time.

Notes to reviewers


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/4622 **Author:** [@praveenk-78](https://github.com/praveenk-78) **Created:** 12/17/2024 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (9) - [`9114a45`](https://github.com/hoppscotch/hoppscotch/commit/9114a4578df7c72c89868b1bcff352b7adb457ee) changes related to test enhancement for #4620 - [`ccc7948`](https://github.com/hoppscotch/hoppscotch/commit/ccc79489b72fd7f45be093c9c065e9ea7e225dc6) Merge branch 'hoppscotch:main' into test-enhancements - [`9621e82`](https://github.com/hoppscotch/hoppscotch/commit/9621e82df9f400e2bd5a96b1052882a0306b2256) Merge pull request #1 from praveenk-78/test-enhancements - [`30872bc`](https://github.com/hoppscotch/hoppscotch/commit/30872bcf797fb3efc540a8ccd43276c4521c308d) Merge branch 'hoppscotch:main' into main - [`cd4dbb0`](https://github.com/hoppscotch/hoppscotch/commit/cd4dbb0ab4bbd961d3105318bf0f51ee3bb9b51f) Merge branch 'hoppscotch:main' into test-enhancements - [`cc82f46`](https://github.com/hoppscotch/hoppscotch/commit/cc82f4638c432ef50983c8badf5524cedc9f3619) added response duration for runner - [`7e84c48`](https://github.com/hoppscotch/hoppscotch/commit/7e84c48d9b333e6b850ad042a4f1b194bdf81cde) Merge pull request #2 from praveenk-78/test-enhancements - [`2204481`](https://github.com/hoppscotch/hoppscotch/commit/22044815001525a2e3a777685e206440e4624428) Merge branch 'hoppscotch:main' into main - [`cb4a7db`](https://github.com/hoppscotch/hoppscotch/commit/cb4a7db33b032148d35146847b0467e63615ac7e) Merge branch 'hoppscotch:main' into main ### 📊 Changes **5 files changed** (+69 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/src/helpers/RequestRunner.ts` (+2 -0) 📝 `packages/hoppscotch-common/src/helpers/terndoc/pw-test.json` (+7 -2) 📝 `packages/hoppscotch-common/src/helpers/testSnippets.ts` (+7 -0) 📝 `packages/hoppscotch-js-sandbox/src/node/test-runner.ts` (+4 -0) 📝 `packages/hoppscotch-js-sandbox/src/shared-utils.ts` (+49 -0) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes #4620 <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> ### What's changed Implemented test methods for the following - toBeGreaterThan - toBeLessThan - toBeGreaterThanOrEqual - toBeLessThanOrEqual - Also, added assertion for response time. <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### Notes to reviewers <!-- Any information you feel the reviewer should know about when reviewing your PR --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#4874
No description provided.