Skip to content
Browse files

Fix cobertura XML by adding fake signature to methods

  • Loading branch information...
1 parent 6f1e7f8 commit 49789fbd478064fa1486fadb6dcefe9039364c34 @gotwarlost gotwarlost committed Nov 14, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −0 README.md
  2. +1 −0 lib/report/cobertura.js
  3. +1 −1 package.json
View
1 README.md
@@ -133,6 +133,7 @@ All the features of istanbul can be accessed as a library using its [public API]
Changelog
---------
+* v0.1.22 : Add signature attribute to cobertura method tags to fix NPE by the Hudson publisher
* v0.1.21 : Add cobertura XML report format; exprimental for now
* v0.1.20 : Fix HTML/ lcov report interface to be more customizable for middleware needs
* v0.1.19 : make all hooking non-destructive in that already loaded modules are never reloaded.
View
1 lib/report/cobertura.js
@@ -93,6 +93,7 @@ function addClassStats(node, fileCoverage, writer) {
writer.println('\t\t\t<method' +
attr('name', name) +
attr('hits', hits) +
+ attr('signature', '()V') + //fake out a no-args void return
' />');
});
writer.println('\t\t</methods>');
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "istanbul",
- "version": "0.1.21",
+ "version": "0.1.22",
"description": "Yet another JS code coverage tool that computes statement, line, function and branch coverage with module loader hooks to transparently add coverage when running tests. Supports all JS coverage use cases including unit tests, server side functional tests and browser tests. Built for scale",
"keywords": [ "coverage", "code coverage", "JS code coverage", "JS coverage" ],
"author": "Krishnan Anantheswaran <kananthmail-github@yahoo.com>",

0 comments on commit 49789fb

Please sign in to comment.
Something went wrong with that request. Please try again.