File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ struct Test: ParsableCommand, BuildCommand {
26
26
func run( ) throws {
27
27
try runTests ( )
28
28
try runCodeGenerationTests ( )
29
+ try runExamplesTests ( )
29
30
30
31
logSection ( " All tests passed " )
31
32
}
@@ -55,6 +56,18 @@ struct Test: ParsableCommand, BuildCommand {
55
56
)
56
57
}
57
58
59
+ private func runExamplesTests( ) throws {
60
+ logSection ( " Running Examples Tests " )
61
+ try invokeSwiftPM (
62
+ action: " test " ,
63
+ packageDir: Paths . examplesDir,
64
+ additionalArguments: [ " --test-product " , " ExamplesPackageTests " ] ,
65
+ additionalEnvironment: swiftPMEnvironmentVariables,
66
+ captureStdout: false ,
67
+ captureStderr: false
68
+ )
69
+ }
70
+
58
71
private func findSwiftpmBinPath( packageDir: URL ) throws -> String {
59
72
return try invokeSwiftPM (
60
73
action: " build " ,
You can’t perform that action at this time.
0 commit comments