Documentation; make test file executable, jshint tests, add a gitignore

This commit is contained in:
Lorenz Hübschle-Schneider 2014-08-09 13:54:11 +01:00 committed by David Cormier
parent 4c3d481447
commit f2bfb3444e
3 changed files with 5 additions and 3 deletions

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
bower_components/
node_modules/

View file

@ -62,9 +62,9 @@ You can also use the latest and greatest development version of Glowing Bear at
Running the tests Running the tests
^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^
Glowing Bear uses Karma and Jasmine to run its unit tests. To run the tests locally, you will first need to install `npm` and `bower` on your machine. Glowing Bear uses Karma and Jasmine to run its unit tests. To run the tests locally, you will first need to install `npm` on your machine. Check out the wonderful [nvm](https://github.com/creationix/nvm) if you don't know it already, it's highly recommended.
Once this is done, you will need to retrieve the necessary packages for testing Glowing-Bear: Once this is done, you will need to retrieve the necessary packages for testing Glowing-Bear (first, you might want to use `npm link` on any packages you have already installed globally):
`$ npm install` `$ npm install`

2
run_tests.sh Normal file → Executable file
View file

@ -1,2 +1,2 @@
./node_modules/.bin/jshint js/* ./node_modules/.bin/jshint js/*.js test/unit/*.js
npm test npm test