Skip to content

Instantly share code, notes, and snippets.

@PrashantBhatasana
Last active June 6, 2019 08:33
Show Gist options
  • Save PrashantBhatasana/088e77e11a2ce20770969fed04137968 to your computer and use it in GitHub Desktop.
Save PrashantBhatasana/088e77e11a2ce20770969fed04137968 to your computer and use it in GitHub Desktop.
Demo protractor configuration file with `protractor-beautiful-reporter` intergation.
var HtmlReporter = require('protractor-beautiful-reporter');
exports.config = {
// The address of a running selenium server.
seleniumAddress: 'http://localhost:4444/wd/hub',
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'firefox'
},
// Spec patterns are relative to the location of the spec file. They may include glob patterns.
suites: {
login: 'tests/e2e/home/login.spec.js'
},
// Options to be passed to Jasmine-node.
jasmineNodeOpts: {
showColors: true, // Use colors in the command line report.
},
baseUrl: "https://hidden-bayou-97469.herokuapp.com/us/#!/",
/******************** protractor-beautiful-reporter */
onPrepare: function () {
// Add a screenshot reporter and store screenshots to `/tmp/screenshots`:
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: 'tmp/screenshots'
}).getJasmine2Reporter());
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment