testicles

1.0.0 • Public • Published

Testicles.js

A no-nonsense, (Whatever-Driven-Development) test runner for node.

Install

npm install [-D] testicles

Test

// some-test-file.js
require('testicles')({
  'some context': {
    
    'scenario #1: description': {
      'edge-case #1': () => {
        // define your test here...
      },
      'edge-case #2': () => {
        // define your test here...
      }
    },

    'scenario #2: description': () => {
      // define your test here...
    },
    ...
  },
  ...
});

Run

$ node ./some-test-file.js

Output

running tests...

√ some context scenario #1: description edge-case #1
√ some context scenario #1: description edge-case #2

× some context scenario #2: description
--> expected true to be false

2 passed, 1 failed

Readme

Keywords

none

Package Sidebar

Install

npm i testicles

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

3.47 kB

Total Files

6

Last publish

Collaborators

  • garydouble