Search code examples
swiftcode-coveragexcode7.3

Code coverage report using Slather


I'm generating a code coverage report in Xcode 7.3 using Slather

slather coverage --show --scheme SchemaName --workspace WorkspaceName.xcworkspace ProjectName.xcodeproj

The problem is that, it generates the report for some of the Foundation class files as well. I want to generate report consisting only project files.

enter image description here


Solution

  • You need to ignore those explicitly. Add --ignore '../*' to ignore everything outside of the root folder, for example. This will catch all of those.