OVERVIEW: Build and run tests SEE ALSO: swift build, swift run, swift package USAGE: swift test OPTIONS: --package-path Specify the package path to operate on (default current directory). This changes the working directory before any other operation --cache-path Specify the shared cache directory path --config-path Specify the shared configuration directory path --security-path Specify the shared security directory path --scratch-path Specify a custom scratch directory path (default .build) --swift-sdks-path Path to the directory containing installed Swift SDKs --pkg-config-path Specify alternative path to search for pkg-config `.pc` files. Use the option multiple times to specify more than one path. --enable-dependency-cache/--disable-dependency-cache Use a shared cache when fetching dependencies (default: --enable-dependency-cache) --enable-build-manifest-caching/--disable-build-manifest-caching (default: --enable-build-manifest-caching) --manifest-cache Caching mode of Package.swift manifests (shared: shared cache, local: package's build directory, none: disabled (default: shared) -v, --verbose Increase verbosity to include informational output --very-verbose, --vv Increase verbosity to include debug output -q, --quiet Decrease verbosity to only include error output. --disable-sandbox Disable using the sandbox when executing subprocesses --netrc Use netrc file even in cases where other credential stores are preferred --enable-netrc/--disable-netrc Load credentials from a netrc file (default: --enable-netrc) --netrc-file Specify the netrc file path --resolver-fingerprint-checking (default: strict) --resolver-signing-entity-checking (default: warn) --enable-signature-validation/--disable-signature-validation Validate signature of a signed package release downloaded from registry (default: --enable-signature-validation) --enable-prefetching/--disable-prefetching (default: --enable-prefetching) --force-resolved-versions, --disable-automatic-resolution, --only-use-versions-from-resolved-file Only use versions from the Package.resolved file and fail resolution if it is out-of-date --skip-update Skip updating dependencies from their remote during a resolution --disable-scm-to-registry-transformation disable source control to registry transformation (default: --disable-scm-to-registry-transformation) --use-registry-identity-for-scm look up source control dependencies in the registry and use their registry identity when possible to help deduplicate across the two origins --replace-scm-with-registry look up source control dependencies in the registry and use the registry to retrieve them instead of source control when possible --default-registry-url Default registry URL to use, instead of the registries.json configuration file -c, --configuration Build with configuration -Xcc Pass flag through to all C compiler invocations -Xswiftc Pass flag through to all Swift compiler invocations -Xlinker Pass flag through to all linker invocations -Xcxx Pass flag through to all C++ compiler invocations --triple --sdk --toolchain --swift-sdk Filter for selecting a specific Swift SDK to build with --sanitize Turn on runtime checks for erroneous behavior, possible values: address, thread, undefined, scudo --auto-index-store/--enable-index-store/--disable-index-store Enable or disable indexing-while-building feature (default: --auto-index-store) --enable-parseable-module-interfaces -j, --jobs The number of jobs to spawn in parallel during the build process --use-integrated-swift-driver --explicit-target-dependency-import-check (default: none) --experimental-explicit-module-build --build-system (default: native) -debug-info-format (default: dwarf) --enable-dead-strip/--disable-dead-strip Disable/enable dead code stripping by the linker (default: --enable-dead-strip) --disable-local-rpath Disable adding $ORIGIN/@loader_path to the rpath by default --skip-build Skip building the test target --enable-xctest/--disable-xctest Enable support for XCTest --enable-swift-testing/--disable-swift-testing Enable support for Swift Testing --parallel/--no-parallel Run the tests in parallel. (default: --no-parallel) --num-workers Number of tests to execute in parallel. -l, --list-tests Lists test methods in specifier format --show-codecov-path, --show-code-coverage-path, --show-coverage-path Print the path of the exported code coverage JSON file -s, --specifier --filter Run test cases matching regular expression, Format: . or ./ --skip Skip test cases matching regular expression, Example: --skip PerformanceTests --xunit-output Path where the xUnit xml file should be generated. --enable-testable-imports/--disable-testable-imports Enable or disable testable imports. Enabled by default. (default: --enable-testable-imports) --enable-code-coverage/--disable-code-coverage Enable code coverage (default: --disable-code-coverage) --version Show the version. -h, -help, --help Show help information. SUBCOMMANDS: list Lists test methods in specifier format last See 'swift help test ' for detailed help.