Posts

Post not yet marked as solved
2 Replies
1.4k Views
Hello, I'm trying to visualize code coverage data in our project but I've faced issues getting the coverage data from the .xcresult bundle produced by xCode Cloud. On my local machine, I'm using xccov view to preview coverage data and everything looks fine: /Users/d.kuznetsov/Git/***/***.swift:     1: *     2: *     3: *     4: *     5: *     6: *     7: *     8: *     9: *    10: *    11: *    12: *    13: *    14: *    15: *    16: 4    17: *    18: *    19: *    20: *    21: *    22: *    23: *    24: *    25: *    26: *    27: *    28: *    29: *    30: *    31: 3    32: 3    33: 3    34: 3    35: *    36: 3    37: 3 [ (56, 0, 0) ]    38: 0    39: 0    40: 3 [ (1, 9, 0) ]    41: 3    42: 3    43: 3    44: 3    45: *    46: 3    47: 3    48: 3    49: 3    50: * But when I tried to use the same approach in ci_post_xcodebuild.sh I couldn't see the coverage data: #!/bin/sh xcrun xccov view --archive $CI_RESULT_BUNDLE_PATH Am I missing something? The schema settings are the same for both Cloud and local machine and code coverage gathering setting is enabled.
Posted Last updated
.