1. urun
The minimal test runner.
urun
Package: urun
Last modified: Tue, 28 Jun 2022 06:33:52 GMT
Version: 0.0.8
Downloads: 2,475

Install

npm install urun
yarn add urun

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.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code