Code demonstrating how to make tests which run in web browsers and Node which automatically rerun when needed.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.md
package.json
testem.json

README.md

Multi-Environment Testing Example

This repository is meant to accompany the article Testing in Browsers and Node with Mocha, Chai, Sinon, and Testem.

Setting up

Clone this repository and run npm install in the root directory.

Running

Running npm test in the root directory will run the tests with testem, get the results, and exit. Running npm run test:dev will leave testem running so you can manually connect browsers for continuous testing. Running npm run test:node will run the node tests without testem and report to stdout with TAP.