|
3 周之前 | |
---|---|---|
.. | ||
spec | 3 周之前 | |
README.md | 3 周之前 | |
package.json | 3 周之前 | |
protractor.conf.js | 3 周之前 |
The jasmine-spec-reporter
can be used to enhance your Protractor tests execution report.
In your Protractor configuration file:
let SpecReporter = require('jasmine-spec-reporter').SpecReporter;
exports.config = {
// your config here ...
onPrepare: function () {
jasmine.getEnv().addReporter(new SpecReporter({
spec: {
displayStacktrace: true
}
}));
}
}
In your protractor configuration file, add the print function in the jasmineNodeOpts
section:
jasmineNodeOpts: {
...
print: function() {}
}
You can find an example in this directory:
npm install
npm test