1.0.0 • Published 7 years ago

testicles v1.0.0

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

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