Skip to content

Latest commit

 

History

History
78 lines (48 loc) · 3.19 KB

cli.md

File metadata and controls

78 lines (48 loc) · 3.19 KB
id title
cli
CLI

QA Wolf provides CLI commands to create browser tests ✅, create browser scripts 🤖, and set up CI ☁️.

Commands

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.

npx qawolf --help

See all commands and options.

npx qawolf create <url> [name]

  • --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

npx qawolf test [...options]

  • --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

npx qawolf azure

Generate a pipeline file for Azure DevOps. See Set Up Azure for more details.

npx qawolf circleci

Generate a workflow file for CircleCI. See Set Up CircleCI for more details.

npx qawolf github

Generate a workflow file for GitHub Actions. See Set Up GitHub for more details.

npx qawolf gitlab

Generate a workflow file for GitLab CI/CD. See Set Up 🦊 GitLab for more details.

npx qawolf howl

🐺😉

npx qawolf jenkins

Generate a Jenkinsfile for Jenkins. See Set Up 🤵 Jenkins for more details.