Currently, it is impossible for XCTest to unit test assert and precondition 
failures because they kill the process. And those are important to unit test: 
how would you test NSArray's objectAtIndex bound conditions? Currently, the 
standard library tests those with StdlibUnittest, a small piece of code which 
runs those tests in a forked process.

I want to start a proposal but I'm not sure if it should come as a XCTest 
improvement which spawns a process or if the language should implement assert 
and precondition as a special kind of throw?

David
_______________________________________________
swift-corelibs-dev mailing list
swift-corelibs-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-corelibs-dev

Reply via email to