Repository navigation
Expand file tree
/
Copy pathconf.js
More file actions
54 lines (52 loc) · 1.55 KB
/
Copy pathconf.js
File metadata and controls
54 lines (52 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
exports.config = {
directConnect: true,
chromeDriver: 'res/driver/chromedriver_83.0.4103.39',
framework: 'jasmine2',
jasmineNodeOpts: {
showColors: true,
silent: true,
defaultTimeoutInterval: 36000,
print: function () {
}
},
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['res/js_compiled_tests/itests/spec.js'],
capabilities: {
browserName: 'chrome',
// Uncomment to run the tests headless
// chromeOptions: {
// //binary: process.env.CHROME_BIN,
// args: ['--headless', '--no-sandbox']
// }
},
onPrepare: function() {
let jasmineReporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
consolidateAll: true,
savePath: 'res/testresults/jasmine-reporter',
filePrefix: 'xmloutput'
}));
let AllureReporter = require('jasmine-allure-reporter');
jasmine.getEnv().addReporter(new AllureReporter({
resultsDir: 'res/testresults/allure-results'
}));
jasmine.getEnv().afterEach(function(done){
browser.takeScreenshot().then(function (png) {
allure.createAttachment('Screenshot', function () {
return new Buffer(png, 'base64')
}, 'image/png')();
done();
})
});
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: 'pretty'
}
}));
}
// multiCapabilities: [
// {browserName: 'chrome'},
// {browserName: 'firefox'}
// ]
};