如何设置 Appium 测试(WDIO-Mocha 测试)通过 BitRise 测试作业的 % 容差
您好,我们正在 BitRise CI/CD 上运行 UI 测试套件。测试套件本身建立在 ReactNative/Jest 代码库之上。WDIO-Mocha runner 用于运行测试。
出口.conf
exports.config = {
specs: [
'./<my directory>/**/*.<testName>.js'
],
exclude: [],
maxInstances: 1,
capabilities: [],
sync: true,
logLevel: 'verbose',
coloredLogs: true,
deprecationWarnings: true,
bail: 0,
screenshotPath: './errorShots/',
waitforTimeout: 5000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
baseUrl: '',
framework: 'mocha',
mochaOpts: {
ui: 'bdd',
timeout: 90000,
logLevel: 'info',
logOutput: './wdio.log'
},
reporters: ['dot', 'allure'],
before() {
require('@babel/register');
global.expect = jestMatchers;
}
};
如何设置通过百分比公差,即 98% 或 90% 等
[例如-在像詹金斯这样的 CI/CD 上,我们可以使用隐藏参数机制或在 TeamCity CI/CD 上实现这一点,它是开箱即用的工具]
谢谢