provide the list of specs to enforce their execution order

proper formatting
This commit is contained in:
Adina Parpalita
2017-11-08 16:16:18 +02:00
parent 5a28a7fcab
commit 9632f57e5e

View File

@@ -8,49 +8,54 @@ const jasmineReporters = require('jasmine-reporters');
const projectRoot = path.resolve(__dirname); const projectRoot = path.resolve(__dirname);
exports.config = { exports.config = {
allScriptsTimeout: 11000, allScriptsTimeout: 11000,
specs: [ specs: [
'./e2e/**/*.test.ts' './e2e/suites/authentication/*.test.ts',
], './e2e/suites/list-views/*.test.ts',
capabilities: { './e2e/suites/application/page-titles.test.ts',
'browserName': 'chrome', './e2e/suites/navigation/side-navigation.test.ts',
chromeOptions: { './e2e/suites/pagination/pagination.test.ts',
prefs: { './e2e/suites/actions/*.test.ts'
'credentials_enable_service': false ],
capabilities: {
'browserName': 'chrome',
chromeOptions: {
prefs: {
'credentials_enable_service': false
}
} }
} },
}, directConnect: true,
directConnect: true, baseUrl: 'http://localhost:3000',
baseUrl: 'http://localhost:3000', framework: 'jasmine2',
framework: 'jasmine', jasmineNodeOpts: {
jasmineNodeOpts: { showColors: true,
showColors: true, defaultTimeoutInterval: 30000,
defaultTimeoutInterval: 30000, print: function() {}
print: function() {} },
}, plugins: [{
plugins: [{ package: 'jasmine2-protractor-utils',
package: 'jasmine2-protractor-utils', disableHTMLReport: false,
disableHTMLReport: false, disableScreenshot: false,
disableScreenshot: false, screenshotOnExpectFailure: true,
screenshotOnExpectFailure: true, screenshotOnSpecFailure: false,
screenshotOnSpecFailure: false, clearFoldersBeforeTest: true,
clearFoldersBeforeTest: true, htmlReportDir: `${projectRoot}/e2e-output/html-report/`,
htmlReportDir: `${projectRoot}/e2e-output/html-report/`, screenshotPath: `${projectRoot}/e2e-output/screenshots/`
screenshotPath: `${projectRoot}/e2e-output/screenshots/` }],
}], onPrepare() {
onPrepare() { require('ts-node').register({
require('ts-node').register({ project: 'e2e/tsconfig.e2e.json'
project: 'e2e/tsconfig.e2e.json' });
}); jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({ jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
consolidateAll: true, consolidateAll: true,
savePath: `${projectRoot}/e2e-output/junit-report`, savePath: `${projectRoot}/e2e-output/junit-report`,
filePrefix: 'results.xml', filePrefix: 'results.xml',
useDotNotation: false, useDotNotation: false,
useFullTestName: false, useFullTestName: false,
reportFailedUrl: true reportFailedUrl: true
})); }));
} }
}; };