mirror of
https://github.com/ProxymanApp/proxyman-windows-linux.git
synced 2026-04-27 08:55:50 +03:00
[GH-ISSUE #133] Write Unit Tests #135
Labels
No labels
Linux
bug
enhancement
enhancement
pull-request
question
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/proxyman-windows-linux#135
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 @NghiaTranUIT on GitHub (Nov 7, 2022).
Original GitHub issue: https://github.com/ProxymanApp/proxyman-windows-linux/issues/133
Originally assigned to: @kics223w1 on GitHub.
Description
Let double check some important use cases and write some missing unit tests
Acceptance Criteria
All current Unit Tests should be passed
filter.test.jsxharBuilder.jsxharmodel.jsxsslproxying.test.jsxproxycore.jsAdd new unit tests
proxymanlogv2.test.jsx
proxymanlogv2file (export from Proxyman for macOS) -> Import to app -> Test if they are the same (Same number of flow, same request/response)proxycore.test.js
The general idea of how to write unit tests for the ProxyCore.
httpbin.org-> Make a POST HTTPS (https://httpbin.org) with some query, JSON Body -> Verify the Responsehttpbin.org-> Make a POST HTTPS (https://httpbin.org) with some query, Form Body -> Verify the Responserepeat-tool.test.js
httpbin.org-> Make a POST HTTPS (https://httpbin.org) with some query, JSON Body -> Verify the Responsehttpbin.org-> Make a POST HTTPS (https://httpbin.org) with some query, Form Body -> Verify the Responseno-caching-tool.test.js
@NghiaTranUIT commented on GitHub (Nov 14, 2022):
Requirement Update 1
@NghiaTranUIT commented on GitHub (Nov 16, 2022):
Requirement Update 2
npm run jest+npm run testinto 1 Job