From 36445a31ee561eb2a3d4a3e7d7a3b99290b32192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rg=20Tillmann?= Date: Mon, 11 Feb 2013 21:17:59 +0100 Subject: [PATCH] Added tests to readme, minor changes to test setup --- Makefile | 2 +- README.md | 11 +++++++++++ test/mocha.opts | 3 +-- 3 files changed, 13 insertions(+), 3 deletions(-) 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