README.md 857 Bytes
Newer Older
jatuporn Tonggasem's avatar
jatuporn Tonggasem committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
Use jasmine-spec-reporter with Protractor
=========================================
The `jasmine-spec-reporter` can be used to enhance your [Protractor](https://github.com/angular/protractor) tests execution report.

## Protractor configuration
In your Protractor configuration file:

```javascript
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:

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

## Example

You can find an example in this directory:

```bash
npm install
npm test
```