因此,我们公司正在使用检查器CI (https://scrutinizer-ci.com/)来进行Python代码分析/覆盖。但我们还需要设置检查器CI来运行NightwatchJS UI测试。
我已经阅读了检查器手册,但没有详细的指南如何设置它来运行UI测试。有一些关于Selenium的信息,但对我们来说不是这样的,NightwatchJS不使用Selenium。任何帮助都将不胜感激。
发布于 2019-06-05 19:52:26
好了,我已经弄清楚了。如果您想要在检查器中运行JS测试,则需要将其粘贴到存储库的配置部分中。之后,更新配置并安排检查。
checks:
javascript:
no_var: false
no_else_return: true
build:
nodes:
coverage:
tests:
override:
- js-scrutinizer-run
- command: 'npm install npm@latest -g'
- command: 'npm init --yes'
- command: 'npm install nightwatch -g'
- command: 'npm install chromedriver --save-dev'
- command: 'nightwatch your_tests.js'
environment:
google_chrome:
use_latest: true
node: v10.14.2https://stackoverflow.com/questions/56363036
复制相似问题