@@ -2168,7 +2168,7 @@ class PackageCommandTestCase: CommandsBuildProviderTestCase {
2168
2168
}
2169
2169
}
2170
2170
2171
- func testMigrateCommand ( ) async throws {
2171
+ func _testMigrateCommand ( configuration : BuildConfiguration ) async throws {
2172
2172
try XCTSkipIf (
2173
2173
!UserToolchain. default. supportesSupportedFeatures,
2174
2174
" skipping because test environment compiler doesn't support `-print-supported-features` "
@@ -2196,7 +2196,7 @@ class PackageCommandTestCase: CommandsBuildProviderTestCase {
2196
2196
}
2197
2197
2198
2198
let ( stdout, _) = try await self . execute (
2199
- [ " migrate " , " --to-feature " , featureName] ,
2199
+ [ " migrate " , " -c " , configuration . rawValue , " - -to-feature" , featureName] ,
2200
2200
packagePath: fixturePath
2201
2201
)
2202
2202
@@ -2220,6 +2220,14 @@ class PackageCommandTestCase: CommandsBuildProviderTestCase {
2220
2220
try await doMigration ( featureName: " InferIsolatedConformances " , expectedSummary: " Applied 3 fix-its in 2 files " )
2221
2221
}
2222
2222
2223
+ func testMigrateCommandDebug( ) async throws {
2224
+ try await _testMigrateCommand ( configuration: . debug)
2225
+ }
2226
+
2227
+ func testMigrateCommandRelease( ) async throws {
2228
+ try await _testMigrateCommand ( configuration: . release)
2229
+ }
2230
+
2223
2231
func testMigrateCommandWithBuildToolPlugins( ) async throws {
2224
2232
try XCTSkipIf (
2225
2233
!UserToolchain. default. supportesSupportedFeatures,
@@ -4432,7 +4440,19 @@ class PackageCommandSwiftBuildTests: PackageCommandTestCase {
4432
4440
try await super. testNoParameters ( )
4433
4441
}
4434
4442
4435
- override func testMigrateCommand( ) async throws {
4443
+ override func testMigrateCommandDebug( ) async throws {
4444
+ try XCTSkipOnWindows (
4445
+ because: """
4446
+ Possibly https://github.com/swiftlang/swift-package-manager/issues/8602:
4447
+ error: Could not choose a single platform for target 'AllIncludingTests' from the supported platforms 'android qnx webassembly'. Specialization parameters imposed by workspace: platform 'nil' sdkVariant 'nil' supportedPlatforms: 'nil' toolchain: 'nil'
4448
+ """ ,
4449
+ skipPlatformCi: true ,
4450
+ )
4451
+
4452
+ try await super. testMigrateCommandDebug ( )
4453
+ }
4454
+
4455
+ override func testMigrateCommandRelease( ) async throws {
4436
4456
try XCTSkipOnWindows (
4437
4457
because: """
4438
4458
Possibly https://github.com/swiftlang/swift-package-manager/issues/8602:
@@ -4441,7 +4461,7 @@ class PackageCommandSwiftBuildTests: PackageCommandTestCase {
4441
4461
skipPlatformCi: true ,
4442
4462
)
4443
4463
4444
- try await super. testMigrateCommand ( )
4464
+ try await super. testMigrateCommandRelease ( )
4445
4465
}
4446
4466
4447
4467
override func testMigrateCommandUpdateManifest2Targets( ) async throws {
0 commit comments