Skip to content

Support Swift Testing#210

Merged
marcprux merged 2 commits intomainfrom
swift-testing
Mar 11, 2026
Merged

Support Swift Testing#210
marcprux merged 2 commits intomainfrom
swift-testing

Conversation

@marcprux
Copy link
Member

@marcprux marcprux commented Mar 11, 2026

This PR adds basic support for the Testing library in a transpiled Skip Lite module. Some macros like #expect and #require are transpiled into the equivalent JUnit testing calls, and import Testing is processed in the same way as import XCTest.

In addition, a Skip module can elide the XCSkipTests.swift test case and it will be automatically generated by the skipstone plugin if it is seen to be missing. The default skip init and skip create projects will no longer create a XCSkipTests.swift file and will instead rely on the auto-generated version.

Addresses (but does not completely fix) skiptools/skip#513

@cla-bot cla-bot bot added the cla-signed label Mar 11, 2026
@marcprux marcprux merged commit ec4e363 into main Mar 11, 2026
5 checks passed
@marcprux marcprux deleted the swift-testing branch March 11, 2026 03:56
@marcprux marcprux added the testing Issues related to Skip's testing capabilities label Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed testing Issues related to Skip's testing capabilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant