swift-testing icon indicating copy to clipboard operation
swift-testing copied to clipboard

`swift test` should warn when `--filter` excludes all tests (_à la_ XCTest.)

Open grynspan opened this issue 2 years ago • 1 comments

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.

grynspan avatar Nov 18 '23 16:11 grynspan

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 avatar Nov 18 '23 16:11 grynspan

No longer required due to #536 and https://github.com/swiftlang/swift-package-manager/pull/7777.

grynspan avatar Jul 25 '24 21:07 grynspan