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

coffeebreak

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coffeebreak

Test runner for Mocha

  • 0.3.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

CoffeeBreak

CoffeeBreak is an extensive testrunner UI for javascript unit tests using mocha. Runs backend tests for node.js and frontend tests as well.

Installation

npm install -g coffeebreak

Use it

$ coffeebreak [options]

Command line options

-h, --help                output usage information
-V, --version             output the version number
-d, --dev                 Run in debug mode
-q, --logRequests         Log requests and response
-p, --port <port>         Set server port
-c, --coverage            Enable code coverage
-r , --project <project>  Run only <project>
-i , --diff <match>       Test title must match <match>

Project configuration

A CoffeeBreak project is a folder with a coffeebreak.json file This file tells CoffeeBreak where all your files and test are stored.

Create a coffeebreak.json file in your project root.

{
    "project": "Project Name",
    "browser": true,
    "files": ["src/**/*.js"],
    "tests": ["tests/**/*.spec.js"]
}

Properties:

project - Sets a test project name. browser - Tells the testrunner that Javascript tests should be handeled as frontend tests. files - Path to required source files tests - Path to your spec files watch - Watch this files for changes. If this property isn't set, all files from the files and `tests' properties are watched for changes

Keywords

FAQs

Package last updated on 04 Jul 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