projecte_ionic/node_modules/jasmine-spec-reporter/examples/protractor
2022-02-09 18:30:03 +01:00
..
spec Conexio amb la api 2022-02-09 18:30:03 +01:00
package.json Conexio amb la api 2022-02-09 18:30:03 +01:00
protractor.conf.js Conexio amb la api 2022-02-09 18:30:03 +01:00
README.md Conexio amb la api 2022-02-09 18:30:03 +01:00

Use jasmine-spec-reporter with Protractor

The jasmine-spec-reporter can be used to enhance your Protractor tests execution report.

Protractor configuration

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
      }
    }));
  }
}

Remove protractor dot reporter

In your protractor configuration file, add the print function in the jasmineNodeOpts section:

jasmineNodeOpts: {
   ...
   print: function() {}
}

Example

You can find an example in this directory:

npm install
npm test