Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

benderjs-mocha

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

benderjs-mocha

Adapter for Mocha testing framework for Bender.js

  • 0.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
decreased by-52.17%
Maintainers
1
Weekly downloads
 
Created
Source

benderjs-mocha

Adapter for Mocha testing framework for Bender.js.

Installation

npm install benderjs-mocha

Usage

Add benderjs-mocha to the plugins array in your bender.js configuration file:

var config = {
    applications: {...}

    browsers: [...],

    plugins: ['benderjs-mocha'], // load the plugin

    tests: {...}
};

module.exports = config;

Set mocha as a framework for the entire project or just a specific tests group:

var config = {
    applications: {...}

    browsers: [...],

    framework: 'mocha', // use for entire project

    plugins: ['benderjs-mocha'],

    tests: {
        Foo: {
            basePath: '',
            framework: 'mocha' // use for a specific tests group
            paths: [...]
        }
    }
};

module.exports = config;

Configuration

You can set some of Mocha's options using bender.js configuration file.

var config = {
    applications: {...}

    browsers: [...],

    framework: 'mocha',

    // configure Mocha
    mocha: {
        ui: 'tdd'
    },

    plugins: ['benderjs-mocha'],

    tests: {...}
};

module.exports = config;

###Available options:

  • String ui - Mocha's interface, possible values: bdd, tdd or exports. Default: bdd
  • Number timeout - test case timeout in milliseconds. Default: 2000
  • String|RegExp grep - will only run tests matching the given pattern, this could break some of Bender's default behaviours ,so please use it at your own risk

Features

  • single test run support

License

MIT, for license details see: LICENSE.md.

Keywords

FAQs

Package last updated on 08 Sep 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc