Sauce 实验室中的量角器 E2e 测试 运行 未 运行 配置中列出的所有测试

Protractor E2e test run in Sauce labs is not running all tests listed in the config

我们使用 grunt protractor runner 并且有 49 个规格 运行。

当我 运行 他们在 sauce 实验室时,有时它只是 运行s x 测试数量,但不是全部。知道为什么吗?除了我的 protarctor conf.js 中的用户和密钥之外,是否还有任何酱汁设置要传递?

http://ondemand.saucelabs.com:80/wd/hub

使用 SauceLabs selenium 服务器
[launcher] Running 1 instances of WebDriver
Started
.....

Ran 5 of 49 specs
5 specs, 0 failures

当代码库中存在 "focused" 个测试时,通常会产生这种输出。检查您的测试中是否有fdescribefit

作为旁注,为了避免将重点测试提交到存储库,我们使用了静态代码分析 - eslint with eslint-plugin-jasmine plugin. Then, we've added a "pre-commit" git hook with the help of pre-git package 这将 运行 在每次提交之前执行 eslint 任务最终禁止将任何代码风格违规提交到存储库中。