突然我在testcafe中进行的测试停止工作。
我尝试使用以下方式重新安装teamcity记者:
npm install -g testcafe testcafe-reporter-teamcity
和
npm install testcafe testcafe-reporter-teamcity
我看到我的node_modules中有文件夹testcafe-reporter-teamcity。但是由于某种原因,它找不到它。
仍然使用命令在本地运行测试时出现错误:
testcafe firefox tests -c 4 --skip-js-errors --reporter teamcity
它将返回错误:
ERROR The provided "teamcity" reporter does not exist. Check that you have specified the report format correctly.
发现问题。
只需将版本降级为"testcafe-reporter-teamcity": "1.0.10"
似乎工作正常。.由于某些原因,1.0.11出现了此问题。