Run the following command
fastlane add_plugin coveralls
Add the following line to your
lane :send_coveralls do coveralls end
Code Coverage checkbox is turned on for your test target.
Then you can send coverage data from
export XCCOVERALLS_REPO_TOKEN=... # grab yours from Coveralls.io bundle exec fastlane send_coveralls
So I started implementing with
xcrun xccov which was introduced in Xcode 9.3.
# List files $ xcrun xccov view --file-list DerivedData/Logs/Build/*.xccovarchive # Code coverage for specific file $ xcrun xccov view --file /Users/ngs/src/CI2Go/AppDelegate.swift \ DerivedData/Logs/Build/*.xccovarchive
Please send me issues if you have any.