robobuster

0.8.2 • Public • Published

RoboBuster

We all know your code could use some abuse. RoboBuster will help you kick the crap out of your code until it can handle anything.

Installation

npm install robobuster

Sample Usage

For more detailed usage see the test.js script.

var assert     = require('assert');
var RoboBuster = require('robobuster');
 
// Tests are run within whatever scope is passed (ex: this)
var buster = new RoboBuster(this, 'Name Of Test Suite');
 
var variableInScope = 'foo';
 
buster.add('First Test Name', function() {
  // Do anything you want. Test will fail if something throws
  assert.equal(variableInScope, 'foo');
});
 
buster.bust();
 

The output from above test

RoboBuster: Picking on Sample Test Suite
RoboBuster: \
RoboBuster:  |  ✔  Test1
RoboBuster:  \ Finished busting up Sample Test Suite
RoboBuster:   | Passed all 1 tests

Run RoboBuster on Itself

Want to see RoboBuster beat itself up?

# run from root module directory 
npm test

Readme

Keywords

none

Package Sidebar

Install

npm i robobuster

Weekly Downloads

0

Version

0.8.2

License

none

Last publish

Collaborators

  • gschier