Hydra
D3.js / SVG data vis for home page of coolgarif.com showing the areas in which we operate.
Viewing the visualisation
- open the *.html files in the /dev folder in your modern browser
Dependencies
Karma - Javascript Test Runner (formerly Testacular)
$ npm install -g karma
Running Tests
The tests are written in Jasmine and are run in the versions of Chrome and Firefox that exist on your system.
To run the test suite:
$ cd /path/to/cloned/repo
$ ./scripts/test.sh
-
the script will launch Chrome and Firefox windows - minimise these, but, leave them open
-
the terminal window will show the results of the tests run every time you save changes to either the unit test files, or, the js files being tested in dev/js/
-
kill the test runner with Ctrl+C - this will also kill the browser windows
-
edit the test configuration in config/testacular.conf.js
-
unit tests found in tests/