Skip to content

Update JaCoCoStatistic

gaelcolas edited this page Jul 18, 2024 · 1 revision

Update-JaCoCoStatistic

SYNOPSIS

Update the Statistics of a freshly merged JaCoCoReports.

SYNTAX

Update-JaCoCoStatistic [-Document] <XmlDocument> [<CommonParameters>]

DESCRIPTION

When you merge two or several JaCoCoReports together using the Merge-JaCoCoReport, the calculated statistics of the Original document are not updated.

This Command will re-calculate the JaCoCo statistics and update the Document.

For the Package, Class, Method of all source files and the total it will update:

  • the Instruction Covered
  • the Instruction Missed
  • the Line Covered
  • the Line Missed
  • the Method Covered
  • the Method Missed
  • the Class Covered
  • the Class Missed

EXAMPLES

EXAMPLE 1

Update-JaCoCoStatistic -Document (Merge-JaCoCoReport $file1 $file2)

PARAMETERS

-Document

JaCoCo report XML document that needs its statistics recalculated.

Type: XmlDocument
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Xml.XmlDocument

NOTES

See also Merge-JaCoCoReport Thanks to Yorick (@ykuijs) for this great feature!

RELATED LINKS

Clone this wiki locally