bountiful-tags v0.33.2
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.
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago