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

@munter/tap-render

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@munter/tap-render

A readable stream of TAP output

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
978
increased by26.03%
Maintainers
1
Weekly downloads
 
Created
Source

@munter/tap-render

NPM version Build Status Coverage Status Dependency Status

A readable stream of TAP output

Refactored out of [substack/tape][https://github.com/substack/tape/blob/35ba8a36f023361089d1d09c122a8288cb061ede/lib/render.js] by Raynos

Forked from Raynos/tap-render by Munter

tap-render only emits the start and end of a valid TAP output once even if there are multiple Render's. This is to allow you to use multiple TAP outputting test frameworks in one process.

If you want an individual Render to output the correct TAP header and footer on it's own pass the force option

var r = Render({ force: true })

Example

var Render = require("tap-render")

var r = Render()

r.pipe(process.stdout)

r.begin()
// TAP version 13

r.push({
    name: "first test"
})
// # first test

r.push(null, {
    ok: true
})
// ok 1

r.push(null, {
    ok: true
    , name: "this test passes"
})
// ok 2 this test passes

r.push(null, {
    ok: false
    , name: "this test fails"
    , operator: "equal"
    , expected: "one"
    , actual: "two"
})
/*
not ok 2 this test fails
  ---
    operator: equal
    expected: "one"
    actual:   "two"
  ...
*/

r.close()
/*

1..3
# tests 3
# pass  2
# fail  1
*/

Installation

npm install tap-render

Contributors

  • Raynos
  • Munter

MIT Licenced

FAQs

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