Socket
Socket
Sign inDemoInstall

bandage-runner

Package Overview
Dependencies
27
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    bandage-runner

A Bandage runner API allowing you to create custom test runners.


Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Install size
1.79 MB
Created
Weekly downloads
 

Readme

Source

bandage-runner

A bandage runner API allowing you to create custom test runners.

Build Status js-standard-style npm

npm install bandage-runner --save-dev

Usage

test.js
var runner = require('bandage-runner')
var testHelper = require('./your-test-helper')
var dependencyContainer = require('./your-dependency-container')

var testParams = [testHelper, dependencyContainer]

runner(testParams)
test/example.test.js
module.exports = function(should, helper, container) {
  should('be awesome', function* (t) {
    t.ok(true, 'checked')
  }
}
package.json
{
  "scripts": {
    "test": "node test.js"
  }
}

Features

  • Auto-locates tests in the test directory.
  • Supports naming test files *.test.js, *.tests.js, test.js, and tests.js.
  • Supports passing values into tests.
  • Supports passing in an alternative array of test files (ignores the default file glob).

API

runner(params, file, endCb)

arguments
  • [params]: (Array) parameters to pass to exported test function.
  • [files] (Array|String) exact path(s) of file(s) containing tests.
  • [endCb] (Function) function which is called after all tests finish.

Keywords

FAQs

Last updated on 11 Feb 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc