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

mocha-tap-reporter

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-tap-reporter

Another TAP reporter for mocha. It adds prefix # for error stacktrace, so that it can be recognized as diagnostics in Jenkins TAP plugin.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22K
increased by64.63%
Maintainers
1
Weekly downloads
 
Created
Source

Mocha Tap Reporter

This reporter generate TAP format report that works perfectly with Jenkins TAP plugin.

Usage

npm install mocha-tap-reporter mocha --reporter mocha-tap-reporter

Example Output

1..3
ok 1 this is test1
not ok 2 this is test2
#  AssertionError: 1 == 2
#      at Context.<anonymous> (/Volumes/Data/workspace/tests/test2.js:10:10)
#      at Test.Runnable.run (/Volumes/Data/workspace/tests/node_modules/mocha/lib/runnable.js:196:15)
#      at Runner.runTest (/Volumes/Data/workspace/tests/node_modules/mocha/lib/runner.js:373:10)
ok 3 this is test3 # SKIP
# tests 3
# pass 1
# fail 1
# skip 1

Jenkins TAP Plugin

If you use Jenkins TAP plugin together, make sure the following option is enabled in your Jenkins jobs:

	Post-build Actions -> Publish TAP Results -> Include comment diagnostics (#) in the results table

Then you will find error stacktrace are avaiable in "TAP Extended Test Result".

Keywords

FAQs

Package last updated on 11 Aug 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