Class PlaywrightTestOptions
- Namespace
- Ando.Operations
- Assembly
- ando.dll
Options for Playwright test runs.
public class PlaywrightTestOptions
- Inheritance
-
PlaywrightTestOptions
- Inherited Members
Properties
Grep
Filter tests by title pattern. Maps to --grep flag.
public string? Grep { get; set; }
Property Value
Headed
Run tests in headed mode (visible browser windows). Maps to --headed flag.
public bool Headed { get; set; }
Property Value
NpmScriptName
Custom npm script name when UseNpmScript is true. Defaults to "test" if not specified.
public string? NpmScriptName { get; set; }
Property Value
Project
Run tests for a specific project (e.g., "chromium", "firefox", "webkit"). Maps to --project flag.
public string? Project { get; set; }
Property Value
Reporter
Reporter to use (e.g., "html", "list", "dot", "json"). Maps to --reporter flag.
public string? Reporter { get; set; }
Property Value
UI
Run tests in UI mode for interactive debugging. Maps to --ui flag.
public bool UI { get; set; }
Property Value
UpdateSnapshots
Update visual snapshots. Maps to --update-snapshots flag.
public bool UpdateSnapshots { get; set; }
Property Value
UseNpmScript
Use 'npm run' instead of 'npx playwright test'. Useful when playwright is configured in package.json scripts.
public bool UseNpmScript { get; set; }
Property Value
Workers
Number of parallel workers. Defaults to half of CPU cores. Maps to --workers flag.
public int? Workers { get; set; }
Property Value
- int?