Skip to content

Tests: Augment TraitTests to support SwiftBuild #8813

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

Conversation

bkhouri
Copy link
Contributor

@bkhouri bkhouri commented Jun 12, 2025

In the process of updating the TraitTests to add test support for the Swift Build build system, migrate the test Suite to Swift Testing, making use of parameterized tests to reduce duplication and use withKnownIssue to get signal when tests have been fixed.

Depends on: #8714

@bkhouri
Copy link
Contributor Author

bkhouri commented Jun 12, 2025

@swift-ci test

@bkhouri bkhouri force-pushed the t/main/migrate_traits_to_swift_testing_and_add_swiftbuild_support branch from a6e7413 to bf2a051 Compare June 12, 2025 18:19
@bkhouri
Copy link
Contributor Author

bkhouri commented Jun 12, 2025

@swift-ci test

@bkhouri
Copy link
Contributor Author

bkhouri commented Jun 16, 2025

@swift-ci test self hosted

@bkhouri
Copy link
Contributor Author

bkhouri commented Jun 16, 2025

@swift-ci test windows

In the process of updating the TraitTests to add test support for the
Swift Build build system, migrate the test Suite to Swift Testing,
making use of parameterized tests to reduce duplication and use
`withKnownIssue`` to get signal when tests have been fixed.
@bkhouri bkhouri force-pushed the t/main/migrate_traits_to_swift_testing_and_add_swiftbuild_support branch from bf2a051 to 51cccf6 Compare June 16, 2025 19:14
@bkhouri
Copy link
Contributor Author

bkhouri commented Jun 16, 2025

@swift-ci test

@bkhouri
Copy link
Contributor Author

bkhouri commented Jun 16, 2025

@swift-ci test windows

@bkhouri bkhouri marked this pull request as ready for review June 17, 2025 13:19
skipPlatformCi: true,
)
@Suite(
// .serialized, // to limit the number of swift executable running.
Copy link
Member

Choose a reason for hiding this comment

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

question: can this comment be removed since the test suite will be running in parallel mode, not serialized?

func traits_whenNoFlagPassed(
buildSystem: BuildSystemProvider.Kind,
) async throws {
try await withKnownIssue {
try await fixture(name: "Traits") { fixturePath in
Copy link
Member

Choose a reason for hiding this comment

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

nitpick: This section be indented one level deeper here underneath the withKnownIssue.

Copy link
Contributor Author

@bkhouri bkhouri Jun 17, 2025

Choose a reason for hiding this comment

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

this was done purposely with a few tests so so the diff is smaller won't show the whitespaces once the withKnownIssue has been resolved.

@bkhouri bkhouri merged commit 2ec37b7 into swiftlang:main Jun 17, 2025
6 checks passed
@bkhouri bkhouri deleted the t/main/migrate_traits_to_swift_testing_and_add_swiftbuild_support branch June 17, 2025 15:06
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.

3 participants