Skip to content

Adopt filePath in SourceLocation for swift-testing tests#2154

Merged
plemarquand merged 1 commit intoswiftlang:mainfrom
plemarquand:test-source-location-file-path
Mar 13, 2026
Merged

Adopt filePath in SourceLocation for swift-testing tests#2154
plemarquand merged 1 commit intoswiftlang:mainfrom
plemarquand:test-source-location-file-path

Conversation

@plemarquand
Copy link
Contributor

Description

Nightly toolchains have now adopted filePath and removed _filePath from the SourceLocation object produced by swift-testing.

Model our SourceLocation type as one that has either a _filePath or a filePath property, where one of them is always set.

filePath was originally introduced in swiftlang/swift-testing#1334

Tasks

  • Required tests have been written
  • Documentation has been updated
  • Added an entry to CHANGELOG.md if applicable

Nightly toolchains have now adopted `filePath` and removed `_filePath`
from the `SourceLocation` object produced by `swift-testing`.

Model our `SourceLocation` type as one that has either a `_filePath` or
a `filePath` property, where one of them is always set.

`filePath` was originally introduced in swiftlang/swift-testing#1334
@plemarquand plemarquand merged commit e6e3c5b into swiftlang:main Mar 13, 2026
26 checks passed
@plemarquand plemarquand deleted the test-source-location-file-path branch March 13, 2026 19:49
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