Skip to content

Add XCTest.dll path to Path when testing on Windows #977

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 2 commits into from
Jul 19, 2024

Conversation

adam-fowler
Copy link
Contributor

No description provided.

// On Windows, add XCTest.dll to the Path
// and run the .xctest executable from the .build directory.
const runtimePath = this.ctx.workspaceContext.toolchain.runtimePath;
const xcTestPath = this.ctx.workspaceContext.toolchain.xcTestPath;
Copy link
Contributor

Choose a reason for hiding this comment

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

It is possible xcTestPath could be undefined, check that it isn't undefined as well before adding it to the Path

@adam-fowler adam-fowler merged commit 284b294 into main Jul 19, 2024
8 checks passed
@adam-fowler adam-fowler deleted the win32-xctest-dll branch July 19, 2024 13:14
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.

2 participants