0.0.14 • Published 6 years ago

fancy-protractor-reporter v0.0.14

Weekly downloads
64
License
MIT
Repository
github
Last release
6 years ago

fancy protractor reporter

Fork of protractor pretty html reporter with another feature of combining reports of several executions when using flake All credit goes to the owner of protractor pretty html reporter

Build Status Latest Version NPM Version NPM Monthly Downloads

npm i fancy-protractor-reporter --save-dev

NOTE: jasmine is set as a peer dependency

Advanced features

  • Combining results of several reports

screen shot

More Screenshots

Basic features

  • Pass/Fail at a glance via navbar highlighting
  • Bolds it('segment') within describe sentence for easy code searching
  • Adds timing in milliseconds for total run time and spec run times
  • Browser console logs for each spec
  • Long running test support, report can be refreshed during test runs (see options)
  • Suspect Line, best guess in the stack trace for your code (see options)
  • Screenshots (see options)

screen shot

More Screenshots

Setup

protractor.conf

var FancyReporter = require('fancy-protractor-reporter').Reporter;

var fancyReporter = new FancyReporter({
    path: 'report/fancy' + new Date().toISOString().substring(0,19),
    screenshotOnPassed: false,
});

module.exports = {
    /* the rest of the object omitted */
    onPrepare: function() {
        jasmine.getEnv().addReporter(fancyReporter);
    },
    afterLaunch = () => {
      fancyReporter.combineReports();
    }
};

Reporter Options

For more options

Examples

First Example - branch Example1
Second Example - branch Example2

Git location - https://github.com/vdimikj/protractor-example.git

Preety protractor

More Screenshots

Combined results of several executions - success

screen shot

Combined result of several executions - fail

screen shot

Highlight the suspect line in your stacktrace

screen shot

Show a screen shot of the error page

screen shot

Show console logs

screen shot