Skip to content
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

Tests: Augment Command Tests #8276

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

bkhouri
Copy link
Contributor

@bkhouri bkhouri commented Feb 4, 2025

Augment Commands Tests to run against the Native and Swift Build build systems.

  • BuildCommandTests
  • TestCommandTests
  • RunCommandTests
  • APIDiffTests
  • PackageCommandTests

Also,

  • Add a new BuildCommandTest and RunCommandTest test case that ensures a package with target conditionals builds and runs successfully
  • Update BuildSystemProvider.Kind.usesXcodeBuildEngine value of swiftbuild to true
  • Augment the Swift Build integration test to run swift test and swift run

TODO:

  • Instead of marking test failures as "Skipped", See if we can mark
    them as "expected fail" so we are forced to update the test once the
    production code has been update to support the "feature".

Fixes #8272
Depends on #8271

@bkhouri bkhouri changed the title T/swb/augment buildcommand tests [WIP] Tests: Augment Build Command Tests Feb 4, 2025
@bkhouri bkhouri force-pushed the t/swb/augment_buildcommand_tests branch from 925baa5 to af97fab Compare February 4, 2025 16:05
@bkhouri bkhouri changed the title [WIP] Tests: Augment Build Command Tests [WIP] Tests: Augment Command Tests Feb 4, 2025
@bkhouri bkhouri force-pushed the t/swb/augment_buildcommand_tests branch from af97fab to 1fb1ed9 Compare February 4, 2025 16:11
@bkhouri bkhouri force-pushed the t/swb/augment_buildcommand_tests branch 3 times, most recently from 428e6fd to 063da6d Compare February 5, 2025 17:04
@bkhouri bkhouri force-pushed the t/swb/augment_buildcommand_tests branch from 063da6d to 9547011 Compare February 13, 2025 17:20
bkhouri added 3 commits March 3, 2025 10:45
Augment Commands Tests to run against the Native and Swift Build build
systems.

- BuildCommandTests
- TestCommandTests
- RunCommandTests
- APIDiffTests
- PackageCommandTests

Also,
  - Add a new BuildCommandTest and RunCommandTest test case that ensures
    a package with target conditionals builds and runs successfully
  - update BuildSystemProvider.Kind to define a "useXcodeBuildSystemPath"
    variable instead of sprinkling the `buildSystem == .xcode` all over
    the place
  - Augment the Swift Build integration test to run `swift test`

TODO:
  - Instead of marking test failures as  "Skipped", See if we can mark
    them as "expected fail" so we are forced to update the test once the
    production code has been update to support the "feature".

more update'
This reverts commit 3e06c8f497b33b24aefc18290d9226dea01525e6.
@bkhouri bkhouri force-pushed the t/swb/augment_buildcommand_tests branch from 9547011 to b14a7e1 Compare March 3, 2025 15:46
@bkhouri bkhouri changed the title [WIP] Tests: Augment Command Tests Tests: Augment Command Tests Mar 3, 2025
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.

swift-test doesn't find xctest bundle with swiftbuild
1 participant