New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get coverage data from XCode UI Test schemes #163
Comments
You might try this with Xcode 7.3 and the latest master version of slather. Xcode 7.2 didn't write coverage for UI Tests, at least for Mac projects. |
Duplicate of #151 |
Hi, when i run the tests in command line setting my own path for derived data I don't get coverage for UI Automated tests using latest Xcode and sdk. Am I missing something? it works when running tests in Xcode and running slather afterwards without setting build_directory, |
What are your slather arguments? Are you specifying your derived data directory? |
in my .slather.yml I have set this is how I trigger tests and slather afterwards.
.slather.yml
|
|
Thank you! It seems to be an issue with running tests through the command line because the Coverage.profdata generated using xcodebuild is different than the one that Xcode generates. |
@gelemias you are right! See fastlane-community/xcov#22 (comment) |
I ran slather against XCode UI Test schemes, and it told me "No product binary found". I then set --binary-file to either the target app's product binary or the UI Test's xctest binary. Both ended up giving me a cobertura.xml with 0% coverage. It appears that the code now is bound to Unit Test only and can't process UI Tests.
The text was updated successfully, but these errors were encountered: