0.33.2 • Published 6 years ago

bountiful-tags v0.33.2

Weekly downloads
1
License
ISC
Repository
bitbucket
Last release
6 years ago

bountiful-tags

A tiny stand-alone fluent-styled testing package.

Installation

This package is released under the ISC license.

Add this package as a development dependency to your project since it will only be used during testing:

$ npm install --save-dev bountiful-tags

Set your project to run all tests when the test command is run and assure that all attempts to version your project have been tested:

{
  "scripts": {
    "test": "bountiful-tags",
    "preversion": "npm test"
  }
}

Additional documentation for the CLI can be found through the standard help option:

$ ./node_modules/.bin/bountiful-tags --help

Usage

Here is a quick little end-to-end demo of how to use the framework that we just installed.

lib/ascii.js:

module.exports = {
  red: (text) => text ? `\x1b[31m${text}\x1b[0m` : ''
};

test/ascii.js:

const {testContext} = require('bountiful-tags');
const {red} = require('../lib/ascii.js');

testContext()
  .testSuite()
    .unit()
    .module('ascii')
    .subroutine('red')
      .testCase('empty')
        .equal(() => red(''), '')
      .testCase('text')
        .equal(() => red('text'), '\x1b[31mtext\x1b[0m');
$ npm test

*.js
+ 2  1ms

Please visit the test directory of the bountiful-tags repo for more detailed examples.

Support

Please forward all bug reports and feature requests to author's email.

0.33.2

6 years ago

0.33.1

6 years ago

0.33.0

6 years ago

0.32.3

6 years ago

0.32.2

6 years ago

0.32.1

6 years ago

0.32.0

6 years ago

0.31.1

6 years ago

0.31.0

6 years ago

0.30.1

6 years ago

0.30.0

6 years ago

0.29.1

6 years ago

0.29.0

6 years ago

0.28.6

6 years ago

0.28.5

6 years ago

0.28.4

6 years ago

0.28.3

6 years ago

0.28.2

6 years ago

0.28.1

6 years ago

0.28.0

6 years ago

0.27.3

6 years ago

0.27.2

6 years ago

0.27.1

6 years ago

0.27.0

6 years ago

0.26.2

6 years ago

0.26.1

6 years ago

0.26.0

6 years ago

0.25.1

6 years ago

0.25.0

6 years ago

0.24.3

6 years ago

0.24.2

6 years ago

0.24.1

6 years ago

0.24.0

6 years ago

0.23.1

6 years ago

0.23.0

6 years ago

0.22.3

6 years ago

0.22.2

6 years ago

0.22.1

6 years ago

0.22.0

6 years ago

0.21.0

6 years ago

0.20.0

6 years ago

0.19.1

6 years ago

0.19.0

6 years ago

0.18.0

6 years ago

0.17.1

6 years ago

0.17.0

6 years ago

0.16.3

6 years ago

0.16.2

6 years ago

0.16.1

6 years ago

0.16.0

6 years ago

0.15.0

6 years ago

0.14.0

7 years ago

0.13.3

7 years ago

0.13.2

7 years ago

0.13.1

7 years ago

0.13.0

7 years ago

0.12.1

7 years ago

0.12.0

7 years ago

0.11.2

7 years ago

0.11.1

7 years ago

0.11.0

7 years ago

0.10.0

7 years ago

0.9.1

7 years ago

0.9.0

7 years ago

0.8.0

7 years ago

0.7.2

7 years ago

0.7.1

7 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago