diff --git a/.gitignore b/.gitignore index 6b8ca7e..a4b07f4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,5 @@ node_modules/ .idea octomind.config.json octomind-cli-debug/ -openapi.yaml vhs/ diff --git a/README.md b/README.md index 81356c1..58ccf41 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ This way even entityIds like environmentIds or testCaseIds will be autocompleted # octomind -Octomind cli tool. Version: 1.3.1. Additional documentation see https://octomind.dev/docs/api-reference/ +Octomind cli tool. Version: 1.3.4. Additional documentation see https://octomind.dev/docs/api-reference/ **Usage:** `octomind [options] [command]` @@ -218,6 +218,9 @@ Execute test cases to create a test report | `-d, --description [text]` | Test description | No | | | `-g, --tags [tags]` | comma separated list of tags | No | | | `-v, --variables-to-overwrite [variables]` | JSON object of variables to overwrite | No | | +| `-b, --browser [type]` | Browser type [CHROMIUM, FIREFOX, SAFARI] | No | CHROMIUM | +| `-r, --breakpoint [name]` | Breakpoint [DESKTOP, MOBILE, TABLET] | No | DESKTOP | +| `-p, --private-location [name]` | Private location name | No | | ## create-discovery diff --git a/package.json b/package.json index 045b445..01f7aad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@octomind/octomind", - "version": "1.3.3", + "version": "1.4.1", "description": "a command line client for octomind apis", "main": "./dist/index.js", "packageManager": "pnpm@10.13.1", @@ -9,7 +9,7 @@ "node": ">=20.0.0" }, "bin": { - "octomind": "./dist/index.js" + "octomind": "dist/index.js" }, "scripts": { "gendoc": "tsx scripts/generate-docs.ts > README.md", diff --git a/src/cli.ts b/src/cli.ts index ee43b93..0eda0dd 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -154,6 +154,16 @@ export const buildCmd = (): CompletableCommand => { "JSON object of variables to overwrite", toJSON, ) + .option( + "-b, --browser [type]", + "Browser type [CHROMIUM, FIREFOX, SAFARI]", + "CHROMIUM", + ) + .option( + "-r, --breakpoint [name]", + "Breakpoint [DESKTOP, MOBILE, TABLET]", + "DESKTOP", + ) .action(addTestTargetWrapper(executeTests)); createCommandWithCommonOptions(program, "test-report") diff --git a/src/tools/test-reports.ts b/src/tools/test-reports.ts index d84ebbe..fc6e686 100644 --- a/src/tools/test-reports.ts +++ b/src/tools/test-reports.ts @@ -26,6 +26,8 @@ export const executeTests = async ( environmentName: options.environmentName, tags: options.tags, variablesToOverwrite: options.variablesToOverwrite, + browser: options.browser, + breakpoint: options.breakpoint, }, });