[英]Coveralls not sending Pull Request status
I develop in Rails, keep my code in Github, use CircleCI for testing, and now I've been trying to introduce Coveralls in the picture. 我在Rails中开发,将代码保存在Github中,使用CircleCI进行测试,现在我一直在尝试在图片中引入Coveralls。
I've set these settings in Coveralls: 我在Coveralls中设置了这些设置:
I added the coveralls gem: 我添加了工作服宝石:
And I set up spec_helper.rb as instructed in Coveralls' documentation: 我按照Coveralls的文档中的说明设置了spec_helper.rb:
What is working: CircleCi sends coverage information to Coveralls, and I can see the coverage reports. 工作原理:CircleCi将覆盖范围信息发送给Coveralls,我可以看到覆盖率报告。
What is not working: Coveralls doesn't send the pull request status so I can't see in Github whether a PR meets the coverage expectations as shown here in one of their ads: 什么不起作用:工作服不发送拉取请求状态,因此我无法在Github中看到PR是否满足其广告中显示的覆盖期望:
If anyone went through the Coveralls-CircleCI setup, I would really appreciate some pointers on this. 如果有人经历了Coveralls-CircleCI设置,我真的很感激这方面的一些指示。
I faced the same issue and in my case the problem was that I invoked coveralls
from a place where the git
command did not work. 我遇到了同样的问题,在我的情况下问题是我从
git
命令不起作用的地方调用了coveralls
。
So I simply moved the .coverage
file to the top of the repo prior to invoking coveralls
and it fixed the problem. 所以我只是在调用
coveralls
之前将.coverage
文件移到了.coverage
的顶部,它修复了问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.