You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Commands] Allow skipping tests with a flag (swiftlang#2847)
* [Tests] Enable testSwiftTestParallel() and testSwiftTestFilter() on non-mac platforms by adding '--enable-test-discovery' flag
* [Commands] Allow skipping tests with a flag
Multiple '--skip' invocations can be used to skip multiple tests. Keep the environment
variable around till its users switch over.
Copy file name to clipboardExpand all lines: Documentation/Development.md
+3-8Lines changed: 3 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,9 @@ $ swift test --parallel
47
47
48
48
# Run a single test.
49
49
$ swift test --filter PackageGraphTests.DependencyResolverTests/testBasics
50
+
51
+
# Run tests for the test targets BuildTests and WorkspaceTests, but skip some test cases.
52
+
$ swift test --filter BuildTests --skip BuildPlanTests --filter WorkspaceTests --skip InitTests
50
53
```
51
54
52
55
Note: PackageDescription v4 is not available when developing using this method.
@@ -184,14 +187,6 @@ absolute search paths. SwiftPM will choose the first
184
187
path which exists on disk. If none of the paths are present on disk, it will fall
185
188
back to built-in computation.
186
189
187
-
## Skipping SwiftPM tests
188
-
189
-
SwiftPM has a hidden env variable `_SWIFTPM_SKIP_TESTS_LIST` that can be used
190
-
to skip a list of tests. This value of the variable is either a file path that contains a
191
-
newline separated list of tests to skip, or a colon-separated list of tests.
192
-
193
-
This is only a development feature and should be considered _unsupported_.
194
-
195
190
## Making changes in TSC targets
196
191
197
192
All targets with the prefix TSC define the interface for the tools support core. Those APIs might be used in other projects as well and need to be updated in this repository by copying their sources directories to the TSC repository. The repository can be found [here](https://github.com/apple/swift-tools-support-core).
0 commit comments