@@ -9,7 +9,7 @@ import Testing
99 /// It stops short of verifying that it actually installs the _most_ recently released version, which is the intended
1010 /// behavior, since determining which version is the latest is non-trivial and would require duplicating code
1111 /// from within swiftly itself.
12- @Test ( . testHomeMockedToolchain) func installLatest( ) async throws {
12+ @Test ( . testHomeMockedToolchain( ) ) func installLatest( ) async throws {
1313 try await SwiftlyTests . runCommand ( Install . self, [ " install " , " latest " , " --post-install-file= \( Swiftly . currentPlatform. getTempFilePath ( ) . path) " ] )
1414
1515 let config = try Config . load ( )
@@ -33,7 +33,7 @@ import Testing
3333 }
3434
3535 /// Tests that `swiftly install a.b` installs the latest patch version of Swift a.b.
36- @Test ( . testHomeMockedToolchain) func installLatestPatchVersion( ) async throws {
36+ @Test ( . testHomeMockedToolchain( ) ) func installLatestPatchVersion( ) async throws {
3737 try await SwiftlyTests . runCommand ( Install . self, [ " install " , " 5.7 " , " --post-install-file= \( Swiftly . currentPlatform. getTempFilePath ( ) . path) " ] )
3838
3939 let config = try Config . load ( )
@@ -57,7 +57,7 @@ import Testing
5757 }
5858
5959 /// Tests that swiftly can install different stable release versions by their full a.b.c versions.
60- @Test ( . testHomeMockedToolchain) func installReleases( ) async throws {
60+ @Test ( . testHomeMockedToolchain( ) ) func installReleases( ) async throws {
6161 var installedToolchains : Set < ToolchainVersion > = [ ]
6262
6363 try await SwiftlyTests . runCommand ( Install . self, [ " install " , " 5.7.0 " , " --post-install-file= \( Swiftly . currentPlatform. getTempFilePath ( ) . path) " ] )
@@ -78,7 +78,7 @@ import Testing
7878 }
7979
8080 /// Tests that swiftly can install main and release snapshots by their full snapshot names.
81- @Test ( . testHomeMockedToolchain) func installSnapshots( ) async throws {
81+ @Test ( . testHomeMockedToolchain( ) ) func installSnapshots( ) async throws {
8282 var installedToolchains : Set < ToolchainVersion > = [ ]
8383
8484 try await SwiftlyTests . runCommand ( Install . self, [ " install " , " main-snapshot-2023-04-01 " , " --post-install-file= \( Swiftly . currentPlatform. getTempFilePath ( ) . path) " ] )
@@ -100,7 +100,7 @@ import Testing
100100 }
101101
102102 /// Tests that `swiftly install main-snapshot` installs the latest available main snapshot.
103- @Test ( . testHomeMockedToolchain) func installLatestMainSnapshot( ) async throws {
103+ @Test ( . testHomeMockedToolchain( ) ) func installLatestMainSnapshot( ) async throws {
104104 try await SwiftlyTests . runCommand ( Install . self, [ " install " , " main-snapshot " , " --post-install-file= \( Swiftly . currentPlatform. getTempFilePath ( ) . path) " ] )
105105
106106 let config = try Config . load ( )
@@ -127,7 +127,7 @@ import Testing
127127 }
128128
129129 /// Tests that `swiftly install a.b-snapshot` installs the latest available a.b release snapshot.
130- @Test ( . testHomeMockedToolchain) func installLatestReleaseSnapshot( ) async throws {
130+ @Test ( . testHomeMockedToolchain( ) ) func installLatestReleaseSnapshot( ) async throws {
131131 try await SwiftlyTests . runCommand ( Install . self, [ " install " , " 6.0-snapshot " , " --post-install-file= \( Swiftly . currentPlatform. getTempFilePath ( ) . path) " ] )
132132
133133 let config = try Config . load ( )
@@ -154,7 +154,7 @@ import Testing
154154 }
155155
156156 /// Tests that swiftly can install both stable release toolchains and snapshot toolchains.
157- @Test ( . testHomeMockedToolchain) func installReleaseAndSnapshots( ) async throws {
157+ @Test ( . testHomeMockedToolchain( ) ) func installReleaseAndSnapshots( ) async throws {
158158 try await SwiftlyTests . runCommand ( Install . self, [ " install " , " main-snapshot-2023-04-01 " , " --post-install-file= \( Swiftly . currentPlatform. getTempFilePath ( ) . path) " ] )
159159
160160 try await SwiftlyTests . runCommand ( Install . self, [ " install " , " 5.9-snapshot-2023-03-28 " , " --post-install-file= \( Swiftly . currentPlatform. getTempFilePath ( ) . path) " ] )
@@ -209,7 +209,7 @@ import Testing
209209 }
210210
211211 /// Verify that the installed toolchain will be used if no toolchains currently are installed.
212- @Test ( . testHomeMockedToolchain) func installUsesFirstToolchain( ) async throws {
212+ @Test ( . testHomeMockedToolchain( ) ) func installUsesFirstToolchain( ) async throws {
213213 let config = try Config . load ( )
214214 #expect( config. inUse == nil )
215215 try await SwiftlyTests . validateInUse ( expected: nil )
@@ -225,7 +225,7 @@ import Testing
225225 }
226226
227227 /// Verify that the installed toolchain will be marked as in-use if the --use flag is specified.
228- @Test ( . testHomeMockedToolchain) func installUseFlag( ) async throws {
228+ @Test ( . testHomeMockedToolchain( ) ) func installUseFlag( ) async throws {
229229 try await SwiftlyTests . installMockedToolchain ( toolchain: SwiftlyTests . oldStable)
230230 try await SwiftlyTests . runCommand ( Use . self, [ " use " , SwiftlyTests . oldStable. name] )
231231 try await SwiftlyTests . validateInUse ( expected: SwiftlyTests . oldStable)
0 commit comments