id | title |
---|---|
cli |
CLI |
QA Wolf provides CLI commands to create browser tests ✅, create browser scripts 🤖, and set up CI ☁️.
You can use environment variables when running the commands below. For example:
QAW_ATTRIBUTE=my-attribute npx qawolf create www.myawesomesite.com
This will use the my-attribute
attribute as a selector when possible.
See all commands and options.
--device <device>
(optional): Emulate a device.--path <path>
(optional): Specify the path to create the test. Defaults to.qawolf
.--script
(optional): Create a node script instead of a Jest test.url
(required): visit this URL to begin your test.name
(optional): Your file will be saved to.qawolf/tests/name.test.js
or.qawolf/scripts/name.js
. The name defaults to the URL hostname if not provided.name
will be converted to camel case.
Create a browser test ✅ or script 🤖.
npx qawolf create --device="iPhone 7" google.com
npx qawolf create --script google.com
--path <path>
(optional): Specify the root directory that Jest should scan for tests. Defaults to.qawolf
....options
(optional) Options for the Jest CLI.
Run tests with Jest.
// run all tests
npx qawolf test
// run one test
npx qawolf test myTest
// use runInBand from the Jest CLI to run tests serially
npx qawolf test --runInBand
Generate a pipeline file for Azure DevOps. See Set Up Azure for more details.
Generate a workflow file for CircleCI. See Set Up CircleCI for more details.
Generate a workflow file for GitHub Actions. See Set Up GitHub for more details.
Generate a workflow file for GitLab CI/CD. See Set Up 🦊 GitLab for more details.
🐺😉
Generate a Jenkinsfile for Jenkins. See Set Up 🤵 Jenkins for more details.