Test runner never began executing tests after launching

Hi all, with the latest XCode 13 (13A233) when we launch the unit test with any iOS 13 emulator some targets are not running and after a while this error is shown (no more info shown):

xctest (67626) encountered an error (Test runner never began executing tests after launching. If you believe this error represents a bug, please attach the result bundle at /Users/user/Library/Developer/Xcode/DerivedData/APP/Logs/Test/Test-APP-2021.10.07_16-36-23-+0200.xcresult)

If we use any iOS 12 emulator then it works. anyone have the same issue and managed to fix it?

I'm having the same problem. The tests are not run when running on top of a simulator with iOS15, however if I put it on the simulator with iOS14.* it runs and works. So far I haven't found any solution to get around this problem.

We have the same issue after upgrading from Xcode 12.5.1 to Xcode 13.2.1. It only happens for some of the unit test targets.

Any ideas?

I got the same problem as following:

So I dump my testing log, and I found someting suspicious “Reveal Server”:

After remove the ‘Reveal-SDK’ in my project, it works for me.

We fixed this issue by changing the inherit! property of the test target in our Podfile from :complete to :search_paths.

We changed this:

target 'App' do
  pod 'Pod', '~> 1.0'

  target 'AppTests' do
    inherit! :complete
    pod 'TestPod', '~>1.0'
  end
end

to this:

target 'App' do
  pod 'Pod', '~> 1.0'

  target 'AppTests' do
    inherit! :search_paths
    pod 'TestPod', '~>1.0'
  end
end
Test runner never began executing tests after launching
 
 
Q