Skip to content

Commit 1d06e90

Browse files
committed
[api] Write XML coverage report to coverage.xml
Ref #161.
1 parent e0fb4dc commit 1d06e90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/vows/coverage/report-xml.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var util = require('util'),
1+
var fs = require('fs'),
22
file = require('./file');
33

44
this.name = 'coverage-report-xml';
@@ -77,5 +77,5 @@ this.report = function (coverageMap) {
7777
+ all.xml
7878
+ '</all>\n</data>\n</report>\n';
7979

80-
util.print(all.xml);
81-
};
80+
fs.writeFileSync('coverage.xml', all.xml);
81+
};

0 commit comments

Comments
 (0)