Skip to content
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

[SR-13301] Xcode 11.6 Code Coverage is incorrect #55741

Closed
swift-ci opened this issue Jul 27, 2020 · 3 comments
Closed

[SR-13301] Xcode 11.6 Code Coverage is incorrect #55741

swift-ci opened this issue Jul 27, 2020 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code coverage Area → source tooling: code coverage optimized only Flag: An issue whose reproduction requires optimized compilation source tooling Area: IDE support, SourceKit, and other source tooling swift 5.2 unexpected behavior Bug: Unexpected behavior or incorrect output

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-13301
Radar None
Original Reporter sachinvas16 (JIRA User)
Type Bug

Attachment: Download

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 289ee2a2c0d01eadf38ec9760f27838a

Issue Description:

Xcode 11.6 doesn't show all the files during code coverage.

@swift-ci
Copy link
Collaborator Author

Comment by Wes Campaigne (JIRA)

Is the code under testing being built with "whole module" compilation mode, or is it using "incremental"?

I was just experiencing a similar issue, and switching the compilation mode setting from "whole module" to "incremental" in the build configuration being used for the tests fixed it.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@hamishknight hamishknight added the code coverage Area → source tooling: code coverage label Sep 20, 2022
@hamishknight
Copy link
Collaborator

Are you able to provide a project that reproduces the issue? I suspect if this was indeed being built with whole-module optimization, this may have been fixed by #61158, which stops us from dropping coverage maps if a function gets optimized out.

@hamishknight
Copy link
Collaborator

Please verify with Xcode 14.3 beta 2 and re-open if you are still experiencing this issue.

@AnthonyLatsis AnthonyLatsis added source tooling Area: IDE support, SourceKit, and other source tooling whole module optimization only Flag: An issue whose reproduction requires whole module optimization swift 5.2 labels Mar 13, 2023
@AnthonyLatsis AnthonyLatsis added optimized only Flag: An issue whose reproduction requires optimized compilation unexpected behavior Bug: Unexpected behavior or incorrect output and removed whole module optimization only Flag: An issue whose reproduction requires whole module optimization labels Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code coverage Area → source tooling: code coverage optimized only Flag: An issue whose reproduction requires optimized compilation source tooling Area: IDE support, SourceKit, and other source tooling swift 5.2 unexpected behavior Bug: Unexpected behavior or incorrect output
Projects
None yet
Development

No branches or pull requests

3 participants