Skip to content

Stop importing Testing from ContainerTestSupport - #2118

Open
Hashim1999164 wants to merge 1 commit into
apple:mainfrom
Hashim1999164:fix/testsupport-testing-import
Open

Stop importing Testing from ContainerTestSupport#2118
Hashim1999164 wants to merge 1 commit into
apple:mainfrom
Hashim1999164:fix/testsupport-testing-import

Conversation

@Hashim1999164

@Hashim1999164 Hashim1999164 commented Aug 13, 2026

Copy link
Copy Markdown

Fixes #2052

ContainerTestSupport is a library product, so swift build compiles it outside a test target. Importing the Testing module there fails with no such module Testing, which breaks make all.

The assert helpers now throw CommandError.executionFailed with the same messages. Callers already use try, so test failures still surface. Unused Testing imports were removed as well.

Test plan

Confirmed Sources/ContainerTestSupport no longer imports Testing. Built the ContainerTestSupport product successfully with swift build.

@jglogan

jglogan commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

@Hashim1999164 The change looks good but you need signed, verified commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Building is broken on main due to 'error: no such module Testing'

3 participants