mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #4475] [MERGED] feat: collection CLI runner with iterations and data feed #4825
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#4825
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?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/4475
Author: @shobanrajm
Created: 10/25/2024
Status: ✅ Merged
Merged: 11/22/2024
Merged by: @jamesgeorge007
Base:
next← Head:run-cli-iterations📝 Commits (10+)
2880ebefeat: collection CLI runner with iterations and data feedfcf8809fix: junit report test case snapshot updated147530bfix: junit report test case snapshot updatede37031fchore: to verify test case0e1af34fix: added validations for data optionff1b667fix: added validations for data option273c9c4fix: test case update for data optionb2d19e3fix: test case update for data option301904efix: test case update for data option7f3e20dfix: test case update for timeout📊 Changes
16 files changed (+626 additions, -241 deletions)
View changed files
📝
packages/hoppscotch-cli/README.md(+53 -35)📝
packages/hoppscotch-cli/package.json(+5 -3)📝
packages/hoppscotch-cli/src/__tests__/e2e/commands/__snapshots__/test.spec.ts.snap(+100 -100)📝
packages/hoppscotch-cli/src/__tests__/e2e/commands/test.spec.ts(+205 -34)➕
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/collections/iteration-data-tests-coll.json(+23 -0)➕
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/iteration-data-envs.json(+18 -0)➕
packages/hoppscotch-cli/src/__tests__/e2e/fixtures/environments/iteration-data-export.csv(+4 -0)📝
packages/hoppscotch-cli/src/commands/test.ts(+74 -4)📝
packages/hoppscotch-cli/src/handlers/error.ts(+3 -0)📝
packages/hoppscotch-cli/src/index.ts(+9 -0)📝
packages/hoppscotch-cli/src/types/collections.ts(+6 -1)📝
packages/hoppscotch-cli/src/types/commands.ts(+2 -0)📝
packages/hoppscotch-cli/src/types/errors.ts(+1 -0)📝
packages/hoppscotch-cli/src/types/request.ts(+1 -1)📝
packages/hoppscotch-cli/src/utils/collections.ts(+104 -63)📝
pnpm-lock.yaml(+18 -0)📄 Description
Closes #4469 , #2928, HFE-660.
What's changed
This PR enhances the CLI by adding iteration and data-driven capabilities for collection runs. Users can now specify the number of iterations and provide data via a CSV file, enabling basic load testing via the following CLI flag additions for the test command:
--iteration-count <no_of_iterations>- Takes in the number of iterations to run the collection.--iteration-data <file_path>- Accepts the path to a CSV file with contents in the below format:Additionally, this PR corrects the execution order of CLI collection runs, moving from LIFO to FIFO to maintain the defined sequence.
Notes to reviewers
N/A
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
awsauth passthrough #4954