New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

karma-testng-reporter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-testng-reporter

TestNG reporter for Karma Jasmine tests

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1K
increased by2.98%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 09 Dec 2014

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