buckler-js

0.1.3 • Public • Published

BucklerJS

A simple javascript test framework

Install

yarn add buckler-js -D

Write a test

export function AddTwoNumbers() {
  return add(3, 5) === 8;
}

Run the test

$ buckler example.js

Buckler will generate TAP output as a result

tap

You can always pipe the output to a TAP formatter (e.g. tap-difflet) if you want pretty test results

$ buckler example.js | tap-difflet

tap

More info

By default buckler will look for all files within the current directory with a .test.js extension.

You can also use a glob to specify the files you want.

$ buckler **/test/*.js

Buckler will run all exported functions from every file, and generate a report.

If the function returns true, the test passes. If the function returns false, the test fails.

Readme

Keywords

none

Package Sidebar

Install

npm i buckler-js

Weekly Downloads

4

Version

0.1.3

License

ISC

Unpacked Size

31.2 kB

Total Files

20

Last publish

Collaborators

  • subhero