Generic XCTest assertions produce vague failure messages. Building custom assertion helpers with #filePath and #line preserves accurate failure locations while producing much clearer diagnostics. Small technique with outsized value for test quality.
🔗: https://qualitycoding.org/swift-test-assertions/ by Jon Reid (@qcoding)
