You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-4Lines changed: 24 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -80,10 +80,12 @@ Jasmine specific configuration. Use empty object,
80
80
81
81
See the [jasmine docs](http://jasmine.github.io/2.4/node.html#section-Configuration) for more information on the supported configuration.
82
82
83
-
The `reporters` property allows the one of the following properties:
83
+
The `reporters` property allows the following properties:
84
84
85
85
*`spec`: used to configure the [Jasmine spec reporter](https://github.com/bcaudan/jasmine-spec-reporter).
86
86
*`teamcity` set it to `true` in order to use [Jasmine Reporters - TeamCityReporter](https://github.com/larrymyers/jasmine-reporters).
87
+
*`junitXml` set it to a object to use [Jasmine Reporters - JUnitXmlReporter](https://github.com/larrymyers/jasmine-reporters). See the jasmine-reporters
88
+
documentation for additional configuration options.
87
89
88
90
If `teamcity` reporter is set `spec` reporter will be disabled and `teamcity` reporter will be added to the coverage reporters as well.
89
91
@@ -100,6 +102,21 @@ Example of using `teamcity` reporter:
100
102
}
101
103
```
102
104
105
+
Example of using `junitXml` reporter:
106
+
107
+
```js
108
+
{
109
+
spec_dir:'spec',
110
+
spec_files: ['**/*[sS]pec/.js'],
111
+
helpers: [],
112
+
reporters: {
113
+
junitXml: {
114
+
savePath:"reports",
115
+
consolidateAll:true
116
+
}
117
+
}
118
+
```
119
+
103
120
#### options.coverage
104
121
105
122
Type: `object`
@@ -283,10 +300,13 @@ app/
283
300
Please note that the junit reporter is no longer available. If you are using this reporter and wish to update to v1, please open a new issue and we'll see if we can get it added back in. Even better, submit a PR :smile:
284
301
285
302
## Release History
303
+
286
304
* `unreleased`
287
-
-**Breaking changes alert! Ensure you read the migration guide before updating from previous versions**
288
-
- Updated to jasmine-spec-reporter v3.1.0. Older style configuration needs to be updated, see migration guide for more details.
289
-
- Removed support for Node.js v0.10
305
+
- **Breaking changes alert! Ensure you read the migration guide before updating from previous versions**
306
+
- Updated to jasmine-spec-reporter v3.1.0. Older style configuration needs to be updated, see migration guide for more details.
307
+
- Removed support for Node.js v0.10
308
+
* `v1.2.0` (2017-04-30)
309
+
- Was compatible with Grunt `0.4` all the time, hence lowering the dependency requirement #60
290
310
* `v1.1.1` (2016-08-29)
291
311
- Istanbul `v0.4.5` and using `data.src` instead of `fileSrc` for compatibility #59
Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "grunt-jasmine-node-coverage",
3
3
"description": "Grunt task for running jasmine using istanbul for code coverage reports. Based off of grunt-jasmine-node by Omar Gonzalez (s9tpepper).",
0 commit comments