Skip to content

Instantly share code, notes, and snippets.

@PrashantBhatasana
Created June 6, 2019 08:39
Show Gist options
  • Save PrashantBhatasana/2f28798f059e4bcfd773ed2af6f5d828 to your computer and use it in GitHub Desktop.
Save PrashantBhatasana/2f28798f059e4bcfd773ed2af6f5d828 to your computer and use it in GitHub Desktop.
Demo protractor configuration file with `jasmine-spec-reporter` intergation.
var SpecReporter = require('jasmine-spec-reporter').SpecReporter;
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/#!/",
logLevel: 'WARN',
/******************** jasmine-spec-reporter */
onPrepare: function () {
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: true
},
summary: {
displayDuration: false
}
}));
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment