Skip to content

Commit

Permalink
Added tests to readme, minor changes to test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jtillmann committed Feb 11, 2013
1 parent 5ed6dc8 commit 36445a3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

test:
./node_modules/.bin/mocha ./test/*.js
./node_modules/.bin/mocha

.PHONY: test
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
--require should
--reporter spec
--reporter dot
--ui bdd
--recursive

0 comments on commit 36445a3

Please sign in to comment.