How to set Appium tests (WDIO-Mocha tests) pass % tolerance on BitRise Test Jobs
Hi, We are running UI Test Suite on BitRise CI/CD. The test suite itself is built on ReactNative/Jest codebase. And WDIO-Mocha runner is used for running the tests.
Exports.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;
}
};
How to set pass % tolerance viz- 98% or 90% etc
[For Example- On CI/CDs like - Jenkins we can achieve this using Hidden parameter mechanism or on TeamCity CI/CD it comes as out of box facility]
Thanks