Socket
Socket
Sign inDemoInstall

karma-testng-reporter

Package Overview
Dependencies
141
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    karma-testng-reporter

TestNG reporter for Karma Jasmine tests


Version published
Weekly downloads
205
decreased by-22.05%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

karma-testng-reporter

Reporter for the TestNG XML format.

Installation

The easiest way is to keep karma-testng-reporter as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-testng-reporter": "0.1"
  }
}

You can simple do it by:

npm install karma-testng-reporter --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    reporters: ['progress', 'testng'],

    // the default configuration
    testngReporter: {
      outputFile: 'unit/testng-results.xml',
      suite: ''
    }
  });
};

If you want to tag your test cases you can simply put the tag names separated with '|' in the describe section . e.g. describe('Logger Module|UT|CT',function(){}); This will tag the specs present inside the describe with two tags UT and CT. As many number of tags can be added. You can pass list of reporters as a CLI argument too:

karma start --reporters testng,dots

For more information on Karma see the homepage.

Keywords

FAQs

Last updated on 09 Dec 2014

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