Skip to content

feat: Add SPM test target for PropertyWrapper - #17

Open
furkancingoz wants to merge 1 commit into
Trendyol:masterfrom
furkancingoz:feature/spm-test-support
Open

feat: Add SPM test target for PropertyWrapper#17
furkancingoz wants to merge 1 commit into
Trendyol:masterfrom
furkancingoz:feature/spm-test-support

Conversation

@furkancingoz

Copy link
Copy Markdown

This PR adds a .testTarget for TYPropertyWrapper to Package.swift.
While the project contains tests for the PropertyWrapper component, they were not accessible or executable via Swift Package Manager (SPM).

Changes

  • Defined a .testTarget named TYPropertyWrapperTests in Package.swift.
  • Updated the import statement in PropertyWrapperTests.swift using a conditional compilation block (#if canImport) to support both the Xcode target name (PropertyWrapper) and the SPM target name (TYPropertyWrapper).
  • Excluded Info.plist from the test target to resolve SPM warnings.

This improvement allows developers to run tests directly from the terminal using swift test and paves the way for SPM-based CI/CD workflows.

Added a `.testTarget` in `Package.swift` for `TYPropertyWrapperTests` to enable running tests via Swift Package Manager. Also updated the import statements in the test file to support the SPM target name.
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.

1 participant