Skip to content

Commit

Permalink
Basic documentation for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbranyen committed Sep 17, 2013
1 parent 7151008 commit e4f0456
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,33 @@ grunt
grunt default server:release
```

## Running tests ##

Running tests is incredibly easy. Simply add `.spec.js` files throughout your
application and they will be automatically picked up by the runner. You can
find example test specs in the `test` directory.

You can run the test runner in one of two ways.

This first method will run the Karma server and automatically run your tests
while you work:

``` bash
grunt karma:daemon
```

This second method will only run the tests one time:

``` bash
grunt karma:run
```

After either scenario above is run, code coverage reports are available in the
`test/coverage` folder.

By default, the test runner is Mocha and Chai. You can easily change this by
editting the commented regions of the karma configuration in `Gruntfile.js`.

## License ##
Copyright © 2013 Tim Branyen (@tbranyen)
Licensed under the MIT license.

0 comments on commit e4f0456

Please sign in to comment.