Unit testing with Dojo and Jasmine
Configuration
npm install
to get jasmine-node, the only dependency.
Running
Open tests/specRunner.html
to run the tests in the browser. Run node tests/index
to run the tests under Node.
To add new tests, add your *.specs.js
file to the spec folder, and add it to the dependencies in the require
calls in specRunner.html and runner.js.
Thanks to this repo and this tutorial for how to get started in the browser. This repo and this page were helpful for getting things working on the Node side.