使用Xcode项目生成Codecov报告

使用Xcode项目生成Codecov报告,xcode,continuous-integration,travis-ci,codecov,Xcode,Continuous Integration,Travis Ci,Codecov,Codecov无法处理代码覆盖率报告。它似乎已成功上载,但出现错误:“处理覆盖率报告时出错” 我的项目已经成功地与Travis CI集成。我只是想把我的代码覆盖率报告发布到Codecov 它是一个公共项目,因此不需要Codecov的令牌 到目前为止,我在这个项目中只有一个样本测试。我正在努力确保在向前推进之前,这种集成能够正常工作 我已经在模式编辑器中启用了代码覆盖率,当我在Xcode中运行测试时,我可以看到它正在生成代码覆盖率报告 在将报告发送到Codecov之前,我是否需要与Slather集

Codecov无法处理代码覆盖率报告。它似乎已成功上载,但出现错误:“处理覆盖率报告时出错”

我的项目已经成功地与Travis CI集成。我只是想把我的代码覆盖率报告发布到Codecov

它是一个公共项目,因此不需要Codecov的令牌

到目前为止,我在这个项目中只有一个样本测试。我正在努力确保在向前推进之前,这种集成能够正常工作

我已经在模式编辑器中启用了代码覆盖率,当我在Xcode中运行测试时,我可以看到它正在生成代码覆盖率报告

在将报告发送到Codecov之前,我是否需要与Slather集成以格式化报告

我的文件路径可能是错误的吗

# travis.yml

language:
  - swift
osx_image: xcode10.2
script:
  - xcodebuild -scheme Healthy -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X,OS=12.2' -enableCodeCoverage YES build test
after_success:
  - bash <(curl -s https://codecov.io/bash)
#travis.yml
语言:
-迅捷的
osx_图像:xcode10.2
脚本:
-xcodebuild-scheme-health-sdk iphonesimulator-destination'platform=iOS模拟器,name=iphonex,OS=12.2'-enableCodeCoverage是构建测试
成功后:
-来自env的bash令牌集
没有找到Yaml,没关系!了解更多信息,请访问http://docs.codecov.io/docs/codecov-yaml
==>通过llvm cov处理Xcode报告
DerivedData文件夹:/Users/travis/Library/Developer/Xcode/DerivedData
提示使用-J“AppName”(接受regexp)加快Swift处理
提示:这将从您的报告中删除pod/s。阿尔索https://docs.codecov.io/docs/ignoring-paths
+构建健康框架的报告
+为HealthyTest生成报告
->为Obj-C运行gcov
==>在中运行gcov。(通过-X gcov禁用)
==>未找到Python coveragepy
==>在以下位置搜索覆盖率报告:
+ .
->发现2份报告
==>检测git/mercurial文件结构
==>附加构建变量
+特拉维斯的名字
+TRAVIS_RUBY_版本
==>阅读报告
+./HealthyTests.xctest.coverage.txt字节=768
+./health.framework.coverage.txt字节=417
==>附加调整
http://docs.codecov.io/docs/fixing-reports
+发现调整
==>压缩内容
==>上传报告
网址:https://codecov.io
查询:branch=master&commit=a88333de1e49b8ba01ea8afe1106eb4ebab45daf&build=22.1&build\u url=&name=&tag=&slug=dcortright%2FHealthy&service=travis&flags=&pr=false&job=21584516
->Pinging Codecov
https://codecov.io/upload/v4?package=bash-8a28df4&token=[secure]&branch=master&commit=a88333de1e49b8ba01ea8afe1106eb4ebab45daf&build=22.1&build\u url=&name=&tag=&slug=dcortright%2fshealth&service=travis&flags=&pr=false&job=2158425216
->上传
->查看位于的报告https://codecov.io/github/dcortright/Healthy/commit/a88333de1e49b8ba01ea8afe1106eb4ebab45daf

我在Codecov页面上看到的只是“处理覆盖率报告时出错”。

请共享覆盖率报告,您正在尝试解析:-)
2.80s$ bash <(curl -s https://codecov.io/bash)
  _____          _
 / ____|        | |
| |     ___   __| | ___  ___ _____   __
| |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
| |___| (_) | (_| |  __/ (_| (_) \ V /
 \_____\___/ \__,_|\___|\___\___/ \_/
                              Bash-8a28df4
==> Travis CI detected.
    project root: .
--> token set from env
    Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
==> Processing Xcode reports via llvm-cov
    DerivedData folder: /Users/travis/Library/Developer/Xcode/DerivedData
    hint Speed up Swift processing by using use -J 'AppName' (regexp accepted)
    hint This will remove Pods/ from your report. Also https://docs.codecov.io/docs/ignoring-paths
    + Building reports for Healthy framework
    + Building reports for HealthyTests xctest
    -> Running gcov for Obj-C
==> Running gcov in . (disable via -X gcov)
==> Python coveragepy not found
==> Searching for coverage reports in:
    + .
    -> Found 2 reports
==> Detecting git/mercurial file structure
==> Appending build variables
    + TRAVIS_OS_NAME
    + TRAVIS_RUBY_VERSION
==> Reading reports
    + ./HealthyTests.xctest.coverage.txt bytes=768
    + ./Healthy.framework.coverage.txt bytes=417
==> Appending adjustments
    http://docs.codecov.io/docs/fixing-reports
    + Found adjustments
==> Gzipping contents
==> Uploading reports
    url: https://codecov.io
    query: branch=master&commit=a88333de1e49b8ba01ea8afe1106eb4ebab45daf&build=22.1&build_url=&name=&tag=&slug=dcortright%2FHealthy&service=travis&flags=&pr=false&job=215842516
    -> Pinging Codecov
https://codecov.io/upload/v4?package=bash-8a28df4&token=[secure]&branch=master&commit=a88333de1e49b8ba01ea8afe1106eb4ebab45daf&build=22.1&build_url=&name=&tag=&slug=dcortright%2FHealthy&service=travis&flags=&pr=false&job=215842516
    -> Uploading
    -> View reports at https://codecov.io/github/dcortright/Healthy/commit/a88333de1e49b8ba01ea8afe1106eb4ebab45daf