Skip to content

Tests: Run packageInitExecutable test on all platforms for native build system #8527

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

pmattos
Copy link
Contributor

@pmattos pmattos commented Apr 17, 2025

Motivation:

Increase code coverage for our integration tests.

This is an issue I introduced in #8454 while ignoring --build-system swiftbuild issues on Windows (i.e., actually this specific issue #8514). I accidentally skipped the packageInitExecutable test for --build-system native as well (which should be green). This PR fixes that.

Modifications:

Swift Testing currently doesn't support combining conditional traits (e.g.,skipHostOS(.windows)) with parametric tests — I double-checked with @stmontgomery. So the 2nd best approach is to split the tests as I just did.

Result:

Slightly Increased test coverage for integration tests :-)

@pmattos
Copy link
Contributor Author

pmattos commented Apr 17, 2025

@swift-ci test

@pmattos
Copy link
Contributor Author

pmattos commented Apr 17, 2025

@swift-ci test self hosted windows

@pmattos pmattos enabled auto-merge (squash) April 17, 2025 21:59
Copy link
Contributor

@stmontgomery stmontgomery left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just focusing my review on the technique used to skip conditionally, not the substance of the tests, but LGTM

@pmattos
Copy link
Contributor Author

pmattos commented Apr 19, 2025

@swift-ci test

@pmattos
Copy link
Contributor Author

pmattos commented Apr 22, 2025

@swift-ci test self hosted windows

2 similar comments
@pmattos
Copy link
Contributor Author

pmattos commented Apr 22, 2025

@swift-ci test self hosted windows

@jakepetroules
Copy link
Contributor

@swift-ci test self hosted windows

@pmattos pmattos merged commit ffdc0c0 into main Apr 23, 2025
9 checks passed
@pmattos pmattos deleted the pmattos/swiftpm-integration-test-on-windows branch April 23, 2025 08:38
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.

4 participants