javascript - 禁用酱连接预取
问题描述
npm install
当我在聚合物项目上运行时,有没有办法可以禁用酱汁连接二进制文件的预取?
我在一个与外界没有联系的 CI 上运行我的测试。我不想使用酱汁连接二进制文件,所以我希望能够禁用二进制文件的获取。
wct.conf.js:
const seleniumGridAddress = 'http://selenium-hub:4444/wd/hub';
const os = require('os');
let json;
if (os.platform() !== 'darwin') {
json = {
activeBrowsers: [{
browserName: 'chrome',
url: seleniumGridAddress
}
],
expanded: true,
suites: [
'test/**/*_test.html'
],
webserver: {
hostname: os.hostname()
},
}
} else {
json = {
expanded: true,
plugins: {
local: {
browsers: ["chrome"]
},
},
suites: [
'test/**/*_test.html'
]
}
}
module.exports = json;
解决方案
在 wct 源代码中发现,您可以将其设置SKIP_WCT_SAUCE_POSTINSTALL_DOWNLOAD
为环境变量以禁用2.0.0-pre.1
在https://github.com/Polymer/wct-sauce/blob/master/CHANGELOG.md上获取 Sauce Connect 二进制 CFR
推荐阅读
- ios - 在 IOS 中使用异步代码编写单元测试
- data-binding - 绑定到动态生成的组件/元素的可绑定属性
- snowflake-cloud-data-platform - 如何使用托管/读者帐户共享 SNOWFLAKE.ACCOUNT_USAGE 架构?
- sql - 当我在租用表中插入值时,它在 Vehicle_ID 中显示无效标识符。创建表时没有错误
- java - 当我使用 Glide 图像加载库通过 url 加载图像时如何获取图像 Uri
- javascript - 单击项目时路由器无法路由
- shell - 使用 Shell 脚本将类似表格的文本转换为具有列名的单独值
- reactjs - 如何更新和删除 antd Table 中的选定行?
- mysql - ER_WRONG_FIELD_WITH_GROUP
- sql - 当条件作为参数时,存储过程不返回数据