Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (29 loc) · 1.19 KB

4.BasicCommands.md

File metadata and controls

39 lines (29 loc) · 1.19 KB

Commands

Basic Commands

# Run all tests
npx cytorus run

# Open Cypress dashboard
npx cytorus open

# Cypress help
npx cypress help

# run specific feature files
npx cytorus run --spec "cypress/integration/features/google.feature"
npx cytorus run --spec "cypress/integration/features/*.feature"
npx cytorus run --spec "cypress/integration/features/**/*.feature"

# Run tests annotated by particular tags
npx cytorus run --tags "@all but not @wip"
npx cytorus run --tags "@all" --spec "cypress/integration/features/google.feature"

# Run tests by their position in feature file(s)
npx cytorus run --only "1,3,4.2"
npx cytorus run --only "1,3,4.2" --spec "cypress/integration/features/google.feature"
# It'll also run tests marked as @skip if specified

# Run all tests excluding tests specified by their position in feature file(s)
npx cytorus run --skip "1,3,4.2" --spec "cypress/integration/features/google.feature"
# It'll also run tests marked as @skip if not specified

# run tests in particular browser, if supported by host OS
npx cytorus run --browser edge
# enable cytorus debugging logs
DEBUG=cytorus npx cytorus run

> Next : Test selection to run particular tests