Avatar
One of the first enhancement requests we received for Swift Testing was the ability to test for precondition failures and other critical failures that terminate the current process when they occur. This feature is also frequently requested for XCTest. With Swift Testing, we have the opportunity to build such a feature in an ergonomic way. Read ...
12:17 AM
swift-testingで、preconditionなどでプロセスが死ぬ事をテストできるようにする提案
12:18 AM
実装方法は #expect(exitsWith:) で挟んだ領域を別プロセスで実行してステータスコードなどを見るらしい (edited)
👀 1
12:19 AM
メモリ空間が別なのでクロージャでキャプチャができないなどの制約がある