Closed machineko closed 2 months ago
After digging in to this a bit it looks like swift build --build-tests
is not passing the -DSWIFT_PM_SUPPORTS_SWIFT_TESTING
flag like swift test
is. This difference in build arguments is causing a rebuild.
I'm going to move this issue under https://github.com/apple/swift-package-manager/ once it is migrated to the swiftlang organization (hopefully soon).
So the SWIFT_PM_SUPPORTS_SWIFT_TESTING
flag can soon be removed from SwiftPM since swift-testing no longer requires it. This became the case with the removal of 5.10 support in swift-testing: https://github.com/apple/swift-testing/pull/467. Once a swift-testing 0.11.0 is tagged the flag can be removed from SwiftPM and this usecase should speed up.
Resolved with #7766.
To Reproduce Use any Testing project run test, after it finish run debug on the same test.
Expected behavior No rebuilding with every run (debugging tests shouldn't use .xctest?)
Environment