mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #2373] [MERGED] feat: added support for passing env.json file to test cmd #3766
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#3766
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/2373
Author: @devblin
Created: 5/28/2022
Status: ✅ Merged
Merged: 6/15/2022
Merged by: @AndrewBastin
Base:
main← Head:feat/env-option📝 Commits (4)
475f1bcfeat: added support for passing env.json file to test cmdd911260refactor: updated README.md and required arg naming for test cmdd5484f9fix: updated pnpm-lock.yaml file2fa3b3frefactor: updated with requested changees📊 Changes
20 files changed (+308 additions, -95 deletions)
View changed files
📝
packages/hoppscotch-cli/README.md(+14 -1)📝
packages/hoppscotch-cli/src/__tests__/commands/test.spec.ts(+41 -2)📝
packages/hoppscotch-cli/src/__tests__/functions/checks/checkFile.spec.ts(+8 -6)📝
packages/hoppscotch-cli/src/__tests__/functions/collection/collectionsRunner.spec.ts(+45 -32)📝
packages/hoppscotch-cli/src/__tests__/functions/getters/getEffectiveFinalMetaData.spec.ts(+2 -0)📝
packages/hoppscotch-cli/src/__tests__/functions/mutators/parseCollectionData.spec.ts(+4 -2)📝
packages/hoppscotch-cli/src/__tests__/functions/pre-request/getEffectiveRESTRequest.spec.ts(+2 -0)➕
packages/hoppscotch-cli/src/__tests__/samples/env-flag-envs.json(+7 -0)➕
packages/hoppscotch-cli/src/__tests__/samples/env-flag-tests.json(+22 -0)📝
packages/hoppscotch-cli/src/commands/test.ts(+6 -5)📝
packages/hoppscotch-cli/src/handlers/error.ts(+4 -3)📝
packages/hoppscotch-cli/src/index.ts(+11 -5)➕
packages/hoppscotch-cli/src/options/test/env.ts(+64 -0)➕
packages/hoppscotch-cli/src/types/collections.ts(+9 -0)➕
packages/hoppscotch-cli/src/types/commands.ts(+5 -0)📝
packages/hoppscotch-cli/src/types/errors.ts(+2 -1)📝
packages/hoppscotch-cli/src/types/request.ts(+4 -8)📝
packages/hoppscotch-cli/src/utils/checks.ts(+40 -22)📝
packages/hoppscotch-cli/src/utils/collections.ts(+7 -4)📝
packages/hoppscotch-cli/src/utils/mutators.ts(+11 -4)📄 Description
Closes #2333
Description
hopp testcmd on collection.json file.-e / --envoption withhopp testcmd.Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.