Skip to content

Add a helper tool for swift-testing #7771

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
Jul 15, 2024

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 13, 2024

Motivation:

Since the xctest and swift-testing are being unified into one product we need an additional tool (just like swiftpm-xctest-helper) to load and run swift-testing tests from the unified bundle.

Modifications:

  • Added swiftpm-testing-helper that accepts a bundle path as an argument.

Result:

swift-testing tests can be run from the unified bundle.

Package.swift Outdated
.executableTarget(
name: "swiftpm-testing-helper",
dependencies: ["Commands"],
exclude: ["CMakeLists.txt"]
Copy link
Contributor

Choose a reason for hiding this comment

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

We still need to teach CMake about this executable, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had that originally but it's not part of the regular build and bootstrap is using freshly build swiftpm so I think we are good.

@xedin xedin force-pushed the install-testing-helper branch from 83391e7 to d38e575 Compare July 13, 2024 01:36
@xedin
Copy link
Contributor Author

xedin commented Jul 13, 2024

@swift-ci please test

@xedin xedin requested review from grynspan and bnbarham July 13, 2024 01:48
@xedin xedin force-pushed the install-testing-helper branch from d38e575 to 5a30490 Compare July 13, 2024 03:42
@xedin
Copy link
Contributor Author

xedin commented Jul 13, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jul 13, 2024

@swift-ci please test Windows platform

@xedin xedin force-pushed the install-testing-helper branch from 5a30490 to 541f70d Compare July 13, 2024 23:54
@xedin
Copy link
Contributor Author

xedin commented Jul 13, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jul 13, 2024

@swift-ci please test Windows platform

@xedin xedin force-pushed the install-testing-helper branch from 541f70d to 2675573 Compare July 15, 2024 16:51
@xedin
Copy link
Contributor Author

xedin commented Jul 15, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jul 15, 2024

@swift-ci please test Windows platform

2 similar comments
@xedin
Copy link
Contributor Author

xedin commented Jul 15, 2024

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Jul 15, 2024

@swift-ci please test Windows platform

Since the xctest and swift-testing are being unified into one product
we need an additional tool (just like `swiftpm-xctest-helper`) to load
and run swift-testing tests from the unified bundle.
@xedin xedin force-pushed the install-testing-helper branch from 2675573 to 6021057 Compare July 15, 2024 18:23
@xedin
Copy link
Contributor Author

xedin commented Jul 15, 2024

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Jul 15, 2024

@swift-ci please test Windows platform

1 similar comment
@xedin
Copy link
Contributor Author

xedin commented Jul 15, 2024

@swift-ci please test Windows platform

@grynspan grynspan enabled auto-merge (squash) July 15, 2024 20:30
xedin added a commit that referenced this pull request Jul 15, 2024
The `swiftpm-testing-helper` itself is merged separately by
#7771
grynspan pushed a commit that referenced this pull request Jul 15, 2024
The `swiftpm-testing-helper` itself is merged separately by
#7771
@grynspan grynspan merged commit 21535dc into swiftlang:main Jul 15, 2024
5 checks passed
grynspan pushed a commit that referenced this pull request Jul 15, 2024
The `swiftpm-testing-helper` itself is merged separately by
#7771
xedin added a commit that referenced this pull request Jul 16, 2024
- Explanation: Since the xctest and swift-testing are being unified into
one product we need an additional tool (just like
`swiftpm-xctest-helper`) to load and run swift-testing tests from the
unified bundle.

- Main Branch PR:
#7771

- Risk: Low

- Reviewed By: @bnbarham @grynspan  

- Testing: This change doesn't impact SwiftPM functionality *yet*, it's
merely hosting the executable.

(cherry picked from commit 6021057)
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