Socket
Socket
Sign inDemoInstall

jasmine-selenium-pretty-html-reporter

Package Overview
Dependencies
14
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jasmine-selenium-pretty-html-reporter

an easy to use html page for looking at jasmine test results utilizing selenium webdriver


Version published
Weekly downloads
597
decreased by-21.14%
Maintainers
1
Install size
39.3 kB
Created
Weekly downloads
 

Readme

Source

jasmine selenium pretty html reporter

Build Status Latest Version NPM Version NPM Monthly Downloads

npm i jasmine-selenium-pretty-html-reporter --save-dev

NOTE: jasmine is set as a peer dependency

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

Basic Setup

protractor.conf

var PrettyReporter = require('protractor-pretty-html-reporter').Reporter;

var prettyReporter = new PrettyReporter({
    // required, there is no default
    path: path.join(__dirname, 'results'),
    screenshotOnPassed: true
});

module.exports = {
    /* the rest of the object omitted */
    onPrepare: function() {
        jasmine.getEnv().addReporter(prettyReporter);
    },
    /* if using isSharded option see below */
    beforeLaunch() {
        prettyReporter.startReporter();
    }
};
Reporter Options
NameTypeDefaultDescription
pathStringpath the report.html will be written to (required)
screenshotOnPassedBooleanfalsetake screenshots for passing tests too.
writeReportEachSpecBooleantruewrites the report.html after each spec completes, this is recommended for long running tests
showBrowserBooleantrueshows browser icon on the overview
highlightSuspectLineBooleantruehighlight the "suspect line" in the dialog
isShardedBooleanfalseturn on if using { shardOnSpec: true} option in protractor. See above for beforeLaunch hook that is needed as well.

More Screenshots

Highlight the suspect line in your stacktrace

screen shot

Show a screen shot of the error page

screen shot

Show console logs

screen shot

Keywords

FAQs

Last updated on 17 Apr 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc