Coverage-Dirs icon indicating copy to clipboard operation
Coverage-Dirs copied to clipboard

View xcode coverage data by folder

Coverage Dirs

View xcode coverage data by folder

Go from this:

To this:

Usage

Find xcresults file from Report navigator in Xcode:

finding coverage

You can then drag and drop, or use open dialog to read the file.

Getting JSON using terminal

Run

xcrun xccov view --report --json <.xcresult file> | pbcopy

to copy coverage json. Paste the output to Coverage Dirs (it will already be in clipboard because of pbcopy)

You can open JSON input in Coverage Dirs in: File > Input JSON (⌘ + I )