Skip to content

Commit

Permalink
Merge pull request #250 from zobo/fix-numeric-coverage-values
Browse files Browse the repository at this point in the history
fix:  numeric coverage values
  • Loading branch information
recca0120 authored Dec 19, 2024
2 parents 47d8665 + 814b672 commit 93a8a04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CloverParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export class CloverParser
export class PHPUnitFileCoverage extends vscode.FileCoverage {
constructor(public readonly cloverFile: any) {
super(vscode.Uri.file(cloverFile['@_name']), new vscode.TestCoverageCount(0, 0));
this.statementCoverage.covered = cloverFile.metrics['@_coveredstatements'];
this.statementCoverage.total = cloverFile.metrics['@_statements'];
this.statementCoverage.covered = parseInt(cloverFile.metrics['@_coveredstatements'], 10);
this.statementCoverage.total = parseInt(cloverFile.metrics['@_statements'], 10);
}

public generateDetailedCoverage(): vscode.FileCoverageDetail[] {
Expand Down

0 comments on commit 93a8a04

Please sign in to comment.