How to get `swift test` to log when a test case completes?

I have a test suite whose execution intermittently does not complete. So this likely means that one of my tests is hanging. I'd like to be able to diagnose which. I've only observed this behaviour in a CI environment, which means I am only able to use the output of swift test to diagnose it.

swift test logs when a test case starts but it does not log when a test case completes. As far as I can tell, there is no option that allows you to make it do so. Is there some way that I can get it to log when a test case completes?

(My current idea is to just put a .timeLimit trait on all of the suites, but was wondering if there was something neater I could do!)

Test cases do not log individual results by default unless they report failures. This is by design to help improve the signal-to-noise ratio when running tests, on the assumption that passing tests are less interesting than failing ones.

To get more verbose logging, use swift test --verbose.

Thank you very much!