swift-testing: Test output is not in gnu standard diagnostic format
Description
Example:
✘ Test nfaToDfa() recorded an issue at parsingTests.swift:107:7: Expectation failed: (n.recognizes(input) → false) == (r → true)
✘ Test nfaToDfa() recorded an issue at parsingTests.swift:108:7: Expectation failed: (d.recognizes(input) → false) == (r → true)
Now I have to write a custom parser to recognize these messages, when if they followed the standard, my IDE would “just work”. The standard is here.
The messages also don’t output full paths from the directory where swift test was invoked, which means I have to add some really hacky code to crawl through the sources and find the right file…maybe. I’m not even sure how to do that.
This is a regression from XCTest output and makes me want to go back!
See also https://github.com/swiftlang/swift-package-manager/issues/6862
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (7 by maintainers)
I’m aware. I’ve requested that there be a flag for debug builds that will provide full paths. also https://github.com/swiftlang/swift-package-manager/issues/6862. It’s just a matter of how interoperable you want to be with existing tools to integrate and how easy it will be for users to track down problems.