mix cucumber (cucumberex v0.2.1)

Copy Markdown View Source

Run Cucumber feature tests.

Usage

mix cucumber [options] [feature_files]

Options

-t, --tags EXPR         Filter by tag expression (@smoke, not @wip, @a and @b)
-n, --name PATTERN      Filter by scenario name
-f, --format FORMAT     Output format: pretty (default), progress, json, html, junit, rerun
-o, --out FILE          Write output to file instead of stdout
-r, --require FILE/DIR  Require file or directory before running
-d, --dry-run           Parse features without executing steps
    --fail-fast         Stop after first failure
    --strict            Fail on undefined/pending
    --strict-undefined  Fail on undefined steps
    --strict-pending    Fail on pending steps
    --wip               Fail if any scenario passes
    --order ORDER       Run order: defined (default), random, reverse
    --reverse           Run in reverse order
    --random [SEED]     Randomize order with optional seed
    --retry N           Retry failing scenarios N times
-b, --backtrace         Show full backtraces
-c, --color / --no-color  Toggle ANSI color
    --no-source         Don't show step source locations
-i, --no-snippets       Don't print undefined step snippets
    --no-duration       Don't print scenario duration
-x, --expand            Expand scenario outline tables
-p, --profile PROFILE   Use named profile from cucumber.yml
-v, --verbose           Show loaded files
-q, --quiet             Suppress snippets, source, duration
-e, --exclude PATTERN   Exclude files matching pattern
    --snippet-type TYPE  Snippet style: cucumber_expression (default) or regexp
    --version           Show version
mix cucumber.init              Scaffold features/ with starter files
mix cucumber.gen.feature NAME  Generate a feature file
mix cucumber.gen.steps NAME    Generate a step definition module

Examples

mix cucumber
mix cucumber features/auth.feature
mix cucumber --tags @smoke
mix cucumber --format json --out report.json
mix cucumber --profile ci