Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Merge pull request #17 from jamestalmage/patch-1
Browse files Browse the repository at this point in the history
docs: document prefix option.
  • Loading branch information
dignifiedquire committed Jun 26, 2015
2 parents d172e21 + 53e3da7 commit 66ca799
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Expand Up @@ -39,6 +39,35 @@ You can pass list of reporters as a CLI argument too:
karma start --reporters growl,dots
```

#### Message Prefix (Optional)
Adds a prefix to the growl message to help differentiate which tests have passed or failed. This is especially usefull if you are running multiple auto-watch instances of karma in parallel.

**karma-unit.conf**
```javascript
module.exports = function(config){
config.set({
reporters: ['progress','growl'],
growlReporter:{
prefix:'UNIT TESTS-'
}
});
};
```
**karma-production.conf**
```javascript
module.exports = function(config){
config.set({
reporters: ['progress','growl'],
growlReporter:{
prefix:'PRODUCTION TESTS-'
}
});
};
```

![screen shot 2013-08-24 at 2 37 18 pm](https://f.cloud.github.com/assets/4082216/1021228/e59eae5c-0ced-11e3-8e2f-c726911368f5.png)


----

For more information on Karma see the [homepage].
Expand Down

0 comments on commit 66ca799

Please sign in to comment.