36 lines
817 B
JavaScript
36 lines
817 B
JavaScript
exports.config = {
|
|
specs: ['tests/webdriverio/specs/**/*.spec.js'],
|
|
capabilities: {
|
|
chromeBrowser: {
|
|
desiredCapabilities: {
|
|
browserName: 'chrome',
|
|
}
|
|
},
|
|
firefoxBrowser: {
|
|
desiredCapabilities: {
|
|
browserName: 'firefox'
|
|
}
|
|
}
|
|
},
|
|
baseUrl: 'http://localhost:8080',
|
|
framework: 'jasmine',
|
|
reporters: ['spec', 'junit'],
|
|
reporterOptions: {
|
|
junit: {
|
|
outputDir: './tests/webdriverio/reports',
|
|
},
|
|
},
|
|
screenshotPath: 'screenshots',
|
|
suites: {
|
|
login: [
|
|
'tests/webdriverio/specs/login.spec.js',
|
|
],
|
|
},
|
|
before: function() {
|
|
// make the properties that browsers share and the list of browserNames available:
|
|
browser.remotes = Object.keys(exports.config.capabilities);
|
|
browser.baseUrl = exports.config.baseUrl;
|
|
},
|
|
};
|
|
|