protractor-jasmine2-html-reporter
Version:
HTML reporter for Jasmine and Protractor. It will generate beautiful and useful report for your web apps.
26 lines (18 loc) • 587 B
JavaScript
// An example configuration file
exports.config = {
// Capabilities to be passed to the webdriver instance.
capabilities: {
'browserName': 'phantomjs'
},
framework: 'jasmine2',
//directConnect: true,
specs: ['test/**/*[sS]pec.js'],
onPrepare: function() {
return global.browser.getProcessedConfig().then(function (config) {
var Jasmine2HtmlReporter = require('./index.js');
jasmine.getEnv().addReporter(new Jasmine2HtmlReporter({
savePath: './test/reports/'
}));
});
}
};