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