diff --git a/Makefile b/Makefile index 4d617b4..58b484f 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ test: - ./node_modules/.bin/mocha ./test/*.js + ./node_modules/.bin/mocha .PHONY: test diff --git a/README.md b/README.md index f20b57f..0050589 100644 --- a/README.md +++ b/README.md @@ -301,6 +301,17 @@ The tracking methods have shortcuts: * `Visitor#i` as an alias for `Visitor#item` +# Tests + +The tests are written with [mocha](https://github.com/visionmedia/mocha) using [should](https://github.com/visionmedia/should.js) and [Sinon.JS](https://github.com/cjohansen/Sinon.JS). + +Run them by executing the following commands in the `universal-analytics` directory: + +``` +$ npm install +$ make test +``` + ## License (The MIT License) diff --git a/test/mocha.opts b/test/mocha.opts index 8769fd8..181ef1b 100644 --- a/test/mocha.opts +++ b/test/mocha.opts @@ -1,4 +1,3 @@ --require should ---reporter spec +--reporter dot --ui bdd ---recursive