BestNotes/test/config/base.conf.js
Dawid Majsnerowski 6d132f8037 Update config
2019-11-19 22:22:29 +01:00

54 lines
1.2 KiB
JavaScript

exports.config = {
runner: 'local',
path: '/',
specs: [
'./test/specs/**/*.js'
],
exclude: [
],
maxInstances: 10,
capabilities: [{
maxInstances: 5,
browserName: 'chrome',
'goog:chromeOptions': {
args: ['--no-sandbox', '--disable-dev-shm-usage'],
},
}],
logLevel: 'info',
port: 9515,
deprecationWarnings: true,
bail: 0,
baseUrl: 'http://localhost',
waitforTimeout: 10000,
connectionRetryTimeout: 90000,
connectionRetryCount: 3,
services: ['chromedriver'],
framework: 'mocha',
reporters: [
['spec',
{
outputDir: 'test/allure-results',
},
],
['allure',
{
outputDir: 'test/allure-results',
disableWebdriverStepsReporting: true,
disableWebdriverScreenshotsReporting: false,
useCucumberStepReporter: false,
},
],
],
mochaOpts: {
ui: 'bdd',
timeout: 60000
},
afterTest: function(test, context, { error, result, duration, passed }) {
if (!passed) {
browser.takeScreenshot();
}
},
}