spect-runner

0.1.1 • Public • Published

Build Status

Spect Runner

Description

A tiny test runner

Usage

[sudo] npm i -g spect-runner

After the installation put a test on your file placed anywhere:

const assert = require('assert');

test('Describe your test here', () => {
  assert.strictEqual(2 + 2, 4);
});

or you can use expect:

test('Describe your test here', () => {
  expect(2 + 2).toStrictEqual(4);
});

And run the tool:

spect-runner ./test/your-test-file.js

See a test file from the repository for more tests example.

Inspiration

The test runner is inspired by tests of https://github.com/paulirish/source-map-js/blob/cdt/test/run-tests.js.

Readme

Keywords

Package Sidebar

Install

npm i spect-runner

Weekly Downloads

2

Version

0.1.1

License

ISC

Unpacked Size

12.1 kB

Total Files

10

Last publish

Collaborators

  • ktfth