[PR #518] [MERGED] Feature/post request tests #2672

Closed
opened 2026-03-17 00:21:24 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/518
Author: @nickpalenchar
Created: 1/24/2020
Status: Merged
Merged: 1/27/2020
Merged by: @liyasthomas

Base: masterHead: feature/post-request-tests


📝 Commits (10+)

  • dbba0cf wip
  • 2214645 Merge branch 'master' into feature/post-request-tests
  • 311d87b Expectation class
  • dce58bd wip - basic test scaffolding
  • b8beac3 Merge branch 'master' into feature/post-request-tests
  • 3ecf628 💄 add tests section to UI
  • dd970af inline expects returning testResults correctly
  • b2be9dc pw.test working
  • 61bf735 response data into testing and error handling
  • 24584cd remove console logs

📊 Changes

2 files changed (+264 additions, -0 deletions)

View changed files

functions/postwomanTesting.js (+175 -0)
📝 pages/index.vue (+89 -0)

📄 Description

Closes #465

Want to get this in while it's still in sync with master. Minimal but functional and ready to be used 😄

The tests button is next to the pre-request script button, which opens a window to code tests. A commented out line given an example of a (failing) test. Comment it in to test the test. Other examples are documented here, and can all be tried.

Biggest todo still is saving to history. Will do later this weekend.

The UI is minimal and... a little funky.. could def use some formatting help by someone better at styling than I am!

In terms of functionality+docs I'll add a bit more incrementally once merged. This was a really fun one!
If someone else merges I recommend squashing and merging.. I made a lot of incremental commits.


🔄 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/518 **Author:** [@nickpalenchar](https://github.com/nickpalenchar) **Created:** 1/24/2020 **Status:** ✅ Merged **Merged:** 1/27/2020 **Merged by:** [@liyasthomas](https://github.com/liyasthomas) **Base:** `master` ← **Head:** `feature/post-request-tests` --- ### 📝 Commits (10+) - [`dbba0cf`](https://github.com/hoppscotch/hoppscotch/commit/dbba0cf847bd83222b7d45f376ac0535cb379147) wip - [`2214645`](https://github.com/hoppscotch/hoppscotch/commit/2214645a966b2d2c4c7a9740b5b344a67b012fee) Merge branch 'master' into feature/post-request-tests - [`311d87b`](https://github.com/hoppscotch/hoppscotch/commit/311d87b22323ea7cf3031138dc62f31769b1b968) Expectation class - [`dce58bd`](https://github.com/hoppscotch/hoppscotch/commit/dce58bdb2fa0e972d588d9ae3aa6ab5cbaefcbfa) wip - basic test scaffolding - [`b8beac3`](https://github.com/hoppscotch/hoppscotch/commit/b8beac37c3ff53fabe5e8937f6daf6358d4ae4c6) Merge branch 'master' into feature/post-request-tests - [`3ecf628`](https://github.com/hoppscotch/hoppscotch/commit/3ecf62857c57c7c072a1de3bcdfc807ef572ba65) :lipstick: add tests section to UI - [`dd970af`](https://github.com/hoppscotch/hoppscotch/commit/dd970af6b131f1841d0509a7f0f379f564602225) inline expects returning testResults correctly - [`b2be9dc`](https://github.com/hoppscotch/hoppscotch/commit/b2be9dce6f5d1cde74c2ab033df438f3b1be3582) pw.test working - [`61bf735`](https://github.com/hoppscotch/hoppscotch/commit/61bf7353151bc74c943aeb548b0bd1671b4c36c0) response data into testing and error handling - [`24584cd`](https://github.com/hoppscotch/hoppscotch/commit/24584cdadd194d4375d9102eacde4cbcea16e884) remove console logs ### 📊 Changes **2 files changed** (+264 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `functions/postwomanTesting.js` (+175 -0) 📝 `pages/index.vue` (+89 -0) </details> ### 📄 Description Closes #465 Want to get this in while it's still in sync with master. Minimal but functional and ready to be used 😄 The tests button is next to the pre-request script button, which opens a window to code tests. A commented out line given an example of a (failing) test. Comment it in to test the test. Other examples are documented [here](https://github.com/liyasthomas/postwoman/wiki/Post-Requests-Tests), and can all be tried. Biggest todo still is saving to history. Will do later this weekend. The UI is minimal and... a little funky.. could def use some formatting help by someone better at styling than I am! In terms of functionality+docs I'll add a bit more incrementally once merged. This was a really fun one! If someone else merges I recommend squashing and merging.. I made a lot of incremental commits. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:21:24 +03:00
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#2672
No description provided.