karma-jasmine-web-worker
Version:
Run Karma and Jasmine tests in a web worker
44 lines (32 loc) • 760 B
Markdown
# karma-jasmine-web-worker
Fork of karma-jasmine to let specs run in web workers.
## Installation
**This plugin ships with Karma by default, so you don't need to install it, it should just work ;-)**
The easiest way is to keep `karma-jasmine` as a devDependency in your `package.json`.
```json
{
"devDependencies": {
"karma": "~0.10",
"karma-jasmine-web-worker": "~0.1"
}
}
```
You can simple do it by:
```bash
npm install karma-jasmine-web-worker --save-dev
```
## Configuration
```js
// karma.conf.js
module.exports = function(config) {
config.set({
frameworks: ['jasmine-web-worker'],
files: [
'*.js'
]
});
};
```
----
For more information on Karma see the [homepage].
[homepage]: http://karma-runner.github.com