gpt4 book ai didi

mocha.js - Travis ci 使用 mocha+coveralls 失败

转载 作者:行者123 更新时间:2023-12-04 12:58:03 25 4
gpt4 key购买 nike

travis ci 失败,因为报告者的输出是空字符串。

NODE_ENV=test YOURPACKAGE_COVERAGE=1 mocha --compilers coffee:coffee-script/register --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js

它在我的本地工作正常。
> mocha --compilers coffee:coffee-script/register --require blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js
[error] "2015-04-26T12:41:57.904Z" 'error from lcovParse: ' 'Failed to parse string'
[error] "2015-04-26T12:41:57.906Z" 'input: ' ''
[error] "2015-04-26T12:41:57.906Z" 'error from convertLcovToCoveralls'

最佳答案

执行前需要告诉 Travis CI 安装最新的节点:

language: node_js
node_js:
- "node"

关于mocha.js - Travis ci 使用 mocha+coveralls 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29878134/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com