In Xcode 12, Xcode provides a Default Test Execution Time Allowance -default-test-execution-time-allowance <sec> for the all test plan rather than putting in manually in each file. However, you don’t want to let developers set an unreasonable time, it’s also something you can enforce setting up a Maximum Test Execution Time Allowance -maximum-test-execution-time-allowance <sec> that will make sure the test doesn’t take more than the specified time regardless of XCTestCase or test plan config. func testUserIsNotEmpty () throws { let user = User ( name : "" , email : "" ) try assertNotEmpty ( user ) // this test is failing } func assertNotEmpty ( _ user : User ) throws { XCTAssertFalse ( user .