Skip to content

Instantly share code, notes, and snippets.

@ToreyStapleton
Created April 17, 2016 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ToreyStapleton/a21adf7e05f32c2ecbba3fcb1a66206c to your computer and use it in GitHub Desktop.
Save ToreyStapleton/a21adf7e05f32c2ecbba3fcb1a66206c to your computer and use it in GitHub Desktop.
var jasmineReporters = require('jasmine-reporters');
var SpecReporter = require('jasmine-spec-reporter');
exports.config = {
framework: 'jasmine2',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: [
'test.spec.js',
],
suites : {
test : 'test.spec.js',
},
jasmineNodeOpts : {
includeStackTrace : true,
defaultTimeoutInterval : 300000,
isVerbose : true,
showColors : true
},
allScriptsTimeout : 300000,
onPrepare: function() {
browser.driver.manage().window().maximize();
// global.browser.ignoreSynchronization = true;
// add jasmine spec reporter
jasmine.getEnv().addReporter(new SpecReporter({
displayStacktrace: 'true'
}));
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
consolidateAll: true,
savePath: 'testresults',
filePrefix: 'xmloutput'
}));
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment