Skip to content

Conversation

@grynspan
Copy link
Contributor

@grynspan grynspan commented Nov 18, 2023

When using XCTest and swift test --filter, if all tests are filtered out a diagnostic of the form:

warning: No matching test cases were run

Is emitted by SwiftPM. We should have a similar warning we emit from swift-testing in this scenario.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

…CTest.)

When using XCTest and `swift test --filter`, if all tests are filtered out a diagnostic of the form:

> warning: No matching test cases were run

Is emitted by SwiftPM. We should have a similar warning we emit from swift-testing in this scenario.
@grynspan grynspan changed the title swift test should warn when --filter excludes all tests (_à la_ X… swift test should warn when --filter excludes all tests (_à la_ XCTest.) Nov 18, 2023
@grynspan
Copy link
Contributor Author

Draft for now because we may end up needing to implement the relevant logic in a single location in SwiftPM so that the message reflects the overall output, not per-library output. TBD.

@grynspan grynspan self-assigned this Nov 20, 2023
@grynspan grynspan added the bug 🪲 Something isn't working label Nov 20, 2023
@grynspan grynspan added the swiftpm-integration 📦 Swift Package Manager integration label Nov 28, 2023
@grynspan
Copy link
Contributor Author

No longer required due to #536 and swiftlang/swift-package-manager#7777.

@grynspan grynspan closed this Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🪲 Something isn't working swiftpm-integration 📦 Swift Package Manager integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant