You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
A project with both Unit Tests and UI Tests will generate code coverage when ran in the XCode IDE. If the same project is run using xcodebuild test from CLI, code coverage from the Unit Tests will exist but coverage from UI Tests will be missing
Sample project with UI Tests and Unit Tests, showing a difference in coverage from xcrun llvm-cov report between the project built via IDE and via CLI
Description
Summary:
A project with both Unit Tests and UI Tests will generate code coverage when ran in the XCode IDE. If the same project is run using
xcodebuild test
from CLI, code coverage from the Unit Tests will exist but coverage from UI Tests will be missingSample project with UI Tests and Unit Tests, showing a difference in coverage from
xcrun llvm-cov report
between the project built via IDE and via CLIhttps://github.com/iwllyu/UITestCoverageBug
thelvis4 found a discrepancy between how the two building processes differ - fastlane-community/xcov#22 (comment)
Steps to Reproduce:
testedViaUnitTest
andtestedViaUITest
are coveredxcrun llvm-cov report
(see github for details)xcodebuild test
for project (see github for details)xcrun llvm-cov report
(see github for details)Expected Results:
coverage for ViewController.swift is 80%
Actual Results:
coverage for ViewController.swift is now 40%
Version:
XCode 8.1
OSX 10.11.5
Notes:
Configuration:
Attachments:
Product Version:
Created: 2016-10-31T22:04:11.002410
Originated: 2016-10-31T00:00:00
Open Radar Link: http://www.openradar.me/29033348
The text was updated successfully, but these errors were encountered: