Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wrumsby/js-testing-boilerplate

Contemporary JavaScript Unit Testing Boilerplate
https://github.com/wrumsby/js-testing-boilerplate

Last synced: about 2 months ago
JSON representation

Contemporary JavaScript Unit Testing Boilerplate

Awesome Lists containing this project

README

        

# Introduction

A simple boilerplate project to demonstrate JavaScript unit testing AMD modules with Mocha, Chai, Sinon.JS and Grunt.

## Setup

1. Install Node.js
1. Install Grunt - `sudo npm install -g grunt-cli`
1. Install JamJS - `sudo npm install -g jamjs`
1. Install Yeti - `sudo npm install -g yeti`
1. Install local Node modules - `npm install`
1. Install local Jam modules - `jam install`

## Running tests

### With Grunt
Run Grunt - `grunt mocha`

### With a Web Browser

Open `test-runner.html` in any web browser.

### With Yeti

Run Yeti - `yeti`