Socket
Socket
Sign inDemoInstall

urun

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    urun

The minimal test runner.


Version published
Weekly downloads
915
decreased by-0.76%
Maintainers
1
Install size
14.6 kB
Created
Weekly downloads
 

Readme

Source

urun

Build Status

The minimal test runner.

Why yet another test runner?

I wanted something simple, that just runs test files, shows progress, and behaves like a good UNIX citizen. Now it exists.

Install

npm install urun

Usage

In order to execute all test-*.js files inside a given directory, simply do:

require('urun')(__dirname);

You now get a nice progress indication, as well as detailed output for each test that fails. By default output is only printed for tests that fail. To enable detailed output for all tests, including those passing, include verbose: true in the list of options.

require('urun')(__dirname, { verbose: true });

Another feature is specifying a regex for the files to run (default is /test-.+\.js$/), for example:

require('urun')(__dirname, { include: /.+Test\.js$/ });

Reporter

require('urun')(__dirname, { reporter: 'BashReporter' }); // default
require('urun')(__dirname, { reporter: 'BashTapReporter' }); // tap compliant output

License

This module is licensed under the MIT license.

FAQs

Last updated on 15 May 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc