Andrew Bastin 3c35bb6091 fix: issue with non-alphanumeric characters within body env variables (fixes #2665) | 2 years ago | |
---|---|---|
.. | ||
bin | 2 years ago | |
src | 2 years ago | |
.gitignore | 2 years ago | |
.prettierrc | 2 years ago | |
CODE_OF_CONDUCT.md | 2 years ago | |
CONTRIBUTING.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
jest.config.ts | 2 years ago | |
jest.setup.ts | 2 years ago | |
package.json | 2 years ago | |
tsconfig.json | 2 years ago | |
tsup.config.ts | 2 years ago |
A CLI to run Hoppscotch test scripts in CI environments.
hopp test [options] [file]
: testing hoppscotch collection.json filehopp [options or commands] arguments
-v
, --ver
: see the current version of the CLI-h
, --help
: display help for commandhopp -v
/ hopp --ver
hopp -h
/ hopp --help
hopp test [options] <file_path>
-e <file_path>
/ --env <file_path>
Accepts path to env.json with contents in below format:
{
"ENV1":"value1",
"ENV2":"value2"
}
You can now access those variables using pw.env.get('<var_name>')
Taking the above example, `pw.env.get("ENV1")` will return `"value1"`
Install @hoppscotch/cli from npm by running:
npm i -g @hoppscotch/cli
pnpm install
cd packages/hoppscotch-cli
pnpm run build
sudo pnpm link --global
hopp
To get started contributing to the repository, please read CONTRIBUTING.md