Giter Site home page Giter Site logo

freelancer / protractor-html-reporter-with-retry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from laurentgoudet/protractor-html-reporter-with-retry

0.0 2.0 1.0 1.43 MB

A jasmine reporter that combines html reports for protractor tests with protractor-retry

License: MIT License

HTML 69.89% JavaScript 30.11%

protractor-html-reporter-with-retry's Introduction

protractor html reporter with retry

Fork of fancy protractor html reporter with another feature to alwayys generate data files with the same names (useful in case of re-running failed testcases) All credit goes to the owner of protractor pretty html reporter and fancy protractor 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)
  • Cleans the target directory between runs
  • Overwrites test results to have a consolidated view after several retries

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

protractor-html-reporter-with-retry's People

Contributors

laflaneuse avatar laurentgoudet avatar stuisme avatar terrymooreii avatar

Watchers

 avatar  avatar

Forkers

magyargergo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.