Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Continue running tests in Xcode when a test crashes

When running a large suite of tests within Xcode, I came across the a test that crashed. The Xcode debugger showed the location of the crash, however there didn't seem to be anyway to mark that test as failed and keep running the rest of the tests.

How within Xcode to mark a crashed test as failed and keep running the rest of the tests?

like image 317
Jason Harrison Avatar asked Aug 29 '26 07:08

Jason Harrison


1 Answers

The easiest, and possibly, only way to mark a crashed test as failed and keep running the rest of the tests is to use Debug > Detach to let the crashed test "die". Xcode will continue to run the remaining tests.

like image 122
Jason Harrison Avatar answered Sep 01 '26 09:09

Jason Harrison



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!