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

earltape

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

earltape

Run tape tests written in Earl Grey

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Earltape

Run tape tests written in Earl Grey!

To install: npm install -g earltape

The command works exactly the same as the regular tape runner, just do earltape test/*.eg to run your tests. You can pipe earltape into any standard tap reporter as you would expect.

To write your tests, require('tape') and use it exactly like you would if you were writing your tests in javascript. You won't get the same API if you require earltape as the index file contains macros.

Macros

Instead of requiring tape, you can use the test macro:

require-macro: earltape -> test

test "timing test":
  @plan(2)
  @equal(typeof(Date.now), 'function')
  start = Date.now()

  setTimeout(cb, 100) where cb = ->
    @equal(Date.now() - start, 100)

Many thanks to hflw for Coffeetape.

FAQs

Package last updated on 05 Aug 2015

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