3.3.0 • Published 5 years ago

lk-test v3.3.0

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

lk-test

An alarmingly simple test library, made mostly to my tastes and practical needs.

CircleCI

Documentation.md

Why

  • I like things that aren't complex.
  • I starting node programs by running something like node src/basicMath.test.js instead of special commands.
  • I don't like messing with globals or weird execution state tracking.
  • I like not having a lot of dependencies.

Installation

Install with

npm i -D lk-test

or

yarn add -D lk-test

Example

// src/math.test.js
import { test, expectTrue } from 'lk-test';

export const testMath = test('Math should perform as expected', async () => [
  expectTrue('One should equal one', 1 == 1),
  expectTrue('Two should equal two', 2 == 2),
  expectTrue('One plus one should equal two', 1 + 1 == 2),
]);
// test.js
import { recursiveColorReporter } from 'lk-test';
import { testMath } from './src/math.test';

const testProgram = async () => {
  console.log(recurisveColorReporter(await testMath.test()))
};

testProgram();
3.3.0

5 years ago

3.2.0

5 years ago

3.1.0

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.4.0

5 years ago

2.3.0

5 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.3.2

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

0.0.0

5 years ago