testicles

Super cool, simplistic test runner for node

Usage no npm install needed!

<script type="module">
  import testicles from 'https://cdn.skypack.dev/testicles';
</script>

README

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