Error traces from `swift test`?

When you run Swift tests in Xcode, and a test gets stopped by a thrown error that bubbles all the way back up to the test, Xcode lets you expand the error in the sidebar to see where the error was thrown, and all the other stack frames in between the top-level test code and the error. This is really helpful. However, when running tests manually via swift test in the CLI, all you get from the output is the fact that the error was thrown, but no information on where. Does the CLI tooling have a way to emit this information, or is this some magic that only Xcode does?

1 Like