Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jasmine-allure-reporter

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jasmine-allure-reporter

Allure Framework reporter to Jasmine and its derivatives (Protractor)

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14K
increased by3.86%
Maintainers
1
Weekly downloads
 
Created
Source

protractor-allure-plugin

A plugin to generate an Allure report out of Jasmine tests.

Using Allure Reporter in Jasmine2

Add the lib into package.json and then configure the plugin:

// conf.js
    var jasmineAllureReporter = require('jasmine-allure-reporter').Jasmine2AllureReporter.singleton;
    jasmineAllureReporter.configure({
      allureReport: {
        resultsDir: 'allure-results'
      }
    });
    jasmine.getEnv().addReporter(jasmineAllureReporter);

Using Allure Reporter in Protractor

Put the above code into the onPrepare inside of your conf.js:

// conf.js
exports.config = {
  framework: 'jasmine2',
  onPrepare: function() {
    var jasmineAllureReporter = require('jasmine-allure-reporter').Jasmine2AllureReporter.singleton;
    jasmineAllureReporter.configure({
      allureReport: {
        resultsDir: 'allure-results'
      }
    });
    jasmine.getEnv().addReporter(jasmineAllureReporter);
  }
}

TBD

  • Currently attachments are added to the test case instead of the current step. This needs to be fixed in allure-js-commons.
  • Add support to Jasmine1. Right now only Jasmine2 is available (do we really need this?).

For Developers

See the system tests to quickly check how the reporter works in real life: node_modules/protractor/bin/protractor ./test/system/conf.js

Keywords

FAQs

Package last updated on 19 Jul 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc