Had this warning when I forgot to enable code coverage:
Xcode 10+
Enable Code Coverage for Test scheme.