Unit test target and logic test target

Open
#7 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
objective-c
Domain
testing

Research direction

Start by tracing how the plugin reads build_var and uses object_file_dir when parsing gcda files. Reproduce coverage generation with both the unit test and logic test targets, then confirm that gcda files from both unit_test.build and application.build are included in the generated coverage.

Written by the indexing model from the issue text.

Description

In our project we have two test targets. One is a unit test target and the other one a logic test target. The unit test target does not run the application and the gcda files for this target are saved in the unit_test.build by Xcode. On the other hand the logic test target gcda files are saved within the application build folder.

So when the plugin parses the gcda files to generate the code coverage, it misses the unit test information.
In the build_var file, object_file_dir is set to application.build/Objects-normal/x86_64
What can i do for the plugin to see both source of bcda files?

Dominant language
Objective-C
Stars
101
Forks
9
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dropbox/XCoverage

All issues in dropbox/XCoverage

Similar issues

More Objective-C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.