Adapter for the Dart unittest testing framework.
For more information on Karma-runner see the homepage.
You'll need node.js: http://nodejs.org/download/
Install karma and karma-dart adapter npms:
$ npm install karma-dart
Refer to npm install documentation for more details and install options.
and you'll need the following dependencies in your pubspec.yaml
unittest: anybrowser: any
The following is an example of karma config.
You can run karma from the local folder:
$ node node_modules/karma/bin/karma start karma-dart.conf
or if you installed it with -g flag just
$ karma start karma-dart.conf
- Missing Dartium launcher.
- Each test file must be a library -- due to the nature of the test runner, this is required.