0.1.1 • Published 5 years ago

spect-runner v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

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.

0.1.1

5 years ago

0.1.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago