@bugbeater/import-tests
v0.0.1-rc.9
Published
## Overview
Downloads
12
Readme
@bugbeater/import-tests
Overview
This project...
Setup
- Set the following environment variables (or use a
.env
file):
BUGBEATER_API_KEY
: Your Bugbeater API key.BUGBEATER_BASE_URL
: The base URL of Bugbeater main API.DEBUG
: Set it tobugbeater:import:*
to enable debug logging. Read more about debug.Note: you can pass environment variables into reporter through the reporter options instead of using environment variables. Reporter options take precedence over environment variables.
Use one of the following methods to import/update tests:
npx @bugbeater/import-tests@latest -p playwright -m "tests/**/*.{test,spec}.js" -u
package.json { "scripts": { "import:tests": "npx @bugbeater/import-tests@latest -p playwright -m \"tests/**/*.{test,spec}.js\" -u" } }
Package options:
-p, --provider
*: The provider to import tests for. Supported platforms:playwright
.-m, --match
*: The glob pattern to match test files. Default:tests/**/*.{test,spec}.js
.-t, --typescript
: Use it if your tests are written in TypeScript. Default:false
. Use with--match
option to match TypeScript files instead of JavaScript files.-u, --update-ids
: If set, the tests will be updated with the Bugbeater test IDs after import. Default:false
.-r, --remove-ids
: If set, the tests IDs will be removed from the tests. Default:false
.-h, --help
: Print help.*
- required option
License
This project is licensed under the terms of the license found in the LICENSE file.