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

karma-trx-reporter

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-trx-reporter

A Karma plugin. Report results in MSTest trx format.

  • 0.4.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

karma-trx-reporter

Reporter for the VisualStudio TRX format.

Status

BranchStatus
masterBuild Status
developBuild Status

Installation

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

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

You can simple do it by:

npm install karma-trx-reporter --save-dev

Configuration

// karma.conf.js
module.exports = function(config) {
  config.set({
    plugins: [
      ...
      require('karma-trx-reporter')
    ],
    
    reporters: ['progress', 'trx'],

    // the default configuration
    trxReporter: {
      outputFile: 'test-results.trx',
      shortTestName: false
    }
  });
};

outputFile

The output file specifies where the trx file will be written.

shortTestName

The trx reporter will attend the browser name to the test name by default. This can be switched off with the shortTestName config property.

nameFormatter

You can provide a custom function to format the testName field of the trx. The nameFormatter is a function with parameters (browser, result) which returns a string. When shortTestName is true, nameFormatter is ignored.

You can pass list of reporters as a CLI argument too:

karma start --reporters trx,dots

For more information on Karma see the homepage.

Keywords

FAQs

Package last updated on 05 May 2019

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