-
Notifications
You must be signed in to change notification settings - Fork 14
/
config.ts
25 lines (22 loc) · 902 Bytes
/
config.ts
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
import {Config} from 'protractor';
import {frameworkConfig} from './params';
export let config: Config = {
framework: 'jasmine',
capabilities: {
browserName: 'firefox'
},
directConnect: true,
specs: ['sample.spec.js'],
seleniumAddress: 'http://localhost:4444/wd/hub',
baseUrl: 'http://localhost:8000/',
noGlobals: true,
onPrepare: () => {
// Configure JasmineReporter for outputting XML results.
let JasmineReporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(new JasmineReporters.JUnitXmlReporter({
consolidateAll: frameworkConfig.reporter.enableReporter || false,
savePath: `${frameworkConfig.rootResultDirectory || 'reports'}/${frameworkConfig.reporter.resultsDirectoryName || 'xmlReports'}`,
filePrefix: frameworkConfig.reporter.resultsFileName
}));
}
};