Skip to content

Commit

Permalink
Fix "wrong number of arguments" when coverageDebug is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
maiflai committed Jun 24, 2023
1 parent bba6532 commit f8ea2e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ test {
scoverage {
minimumRate = 0.3
coverageType = org.scoverage.CoverageType.Line
// verify that debug mode works
coverageDebug = true
}

if (hasProperty("excludedFile")) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/groovy/org/scoverage/ScoverageWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void write(Set<File> sourceDirs,
File.separator +
Constants.XMLReportFilename());
if (coverageDebug) {
ScoverageXmlWriter writerDebug = cst.newInstance(sourceDirsSeq, reportDir, true);
ScoverageXmlWriter writerDebug = cst.newInstance(sourceDirsSeq, reportDir, true, new Some<>(sourceEncoding));
writerDebug.write(coverage);
logger.info("[scoverage] Written XML report with debug information to " +
reportDir.getAbsolutePath() +
Expand Down

0 comments on commit f8ea2e0

Please sign in to comment.