spark run

The main command. Run tests locally or in the cloud.

spark run [path] [flags]
ArgumentDefaultDescription
path.Directory to search for *.spark files, or a single file

Flags

FlagDefaultDescription
--tags <tags>Run tests matching ANY of the specified tags (comma-separated)
--filter <pattern>Run tests matching name pattern (* wildcard, or substring without wildcard)
Common combos:--tags smoke for quick checks, --filter "login*" to focus on one area.
FlagDefaultDescription
--html <directory>Write HTML reports to directory (dashboard + per-test reports)
--junit <file>Write JUnit XML report to file
--artifacts <directory>../var/artifactsDirectory for test artifacts
--teamcityfalseOutput TeamCity service messages (for IDE integration)
--verbosefalseShow detailed logs (all events)
--debugfalseShow Docker commands (implies --verbose)
FlagDefaultDescription
--workers <n>0Parallel workers (0 = auto-detect from CPU count)
--timeout <seconds>300Max time per test execution
--cpu-threshold <float>0CPU load threshold (0.0-1.0), pauses execution when exceeded. 0 = disabled
--regenerate-snapshotsfalseUpdate snapshot files instead of comparing
FlagDefaultDescription
--configuration <file>Path to spark.yaml config file (auto-discovered if not set)
--path-mapping <mapping>Path prefix mapping for artifacts (container=host)
--cloudfalseExecute tests in Spark Cloud (requires SPARK_CLOUD_URL)
When --cloud is used, local-only flags are ignored: --html, --junit, --artifacts, --regenerate-snapshots, --verbose, --debug, --timeout, --workers.

::