Closed gemal closed 5 years ago
Could you please share you clover file? The first 3-5 lines should be enough.
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1572431392">
<project timestamp="1572431392">
<file name="/home/scrutinizer/build/app/src/Auth/DbBasicAuthenticate.php">
<class name="DbBasicAuthenticate" namespace="global">
<metrics complexity="14" methods="2" coveredmethods="0" conditionals="0" coveredconditionals="0" statements="28" coveredstatements="15" elements="30" coveredelements="15"/>
</class>
Please try again with version 4.3.4.
c:\Temp\codecov>cc
2019-10-31T13:51:26: Arguments
2019-10-31T13:51:26: -reports:node-2-clover.xml
2019-10-31T13:51:26: -targetDir:c:\temp\codecov\html
2019-10-31T13:51:26: -verbosity:Verbose
2019-10-31T13:51:26: -reporttypes:html
2019-10-31T13:51:27: Executable: c:\Temp\codecov\ReportGenerator.Core.dll
2019-10-31T13:51:27: Working directory: c:\Temp\codecov
2019-10-31T13:51:27: Settings
2019-10-31T13:51:27: { "NumberOfReportsParsedInParallel": 1, "NumberOfReportsMergedInParallel": 1, "MaximumNumberOfHistoricCoverageFiles": 100, "RenderPngFallBackImagesForHistoryCharts": false, "CachingDuringOfRemoteFilesInMinutes": 10080, "DisableRiskHotspots": false }
2019-10-31T13:51:27: { "MetricThresholdForCyclomaticComplexity": 30, "MetricThresholdForCrapScore": 15, "MetricThresholdForNPathComplexity": 200 }
2019-10-31T13:51:27: Loading report 'c:\Temp\codecov\node-2-clover.xml' 1/1 in memory
2019-10-31T13:51:27: Preprocessing report
2019-10-31T13:51:27: Error during reading report 'c:\Temp\codecov\node-2-clover.xml' (Size: 4,7MB): Object reference not set to an instance of an object.
2019-10-31T13:51:27: Parsing of 1 files completed.
2019-10-31T13:51:27: Coverage report parsing took 0,5 seconds
2019-10-31T13:51:27: Initializing report builders for report types: html
2019-10-31T13:51:27: Analyzing 0 classes
2019-10-31T13:51:27: Creating summary
2019-10-31T13:51:27: Writing report file 'c:\temp\codecov\html\index.htm'
2019-10-31T13:51:28: Report generation took 1,0 seconds
Could you please share the full file?
PhpUnit seems to use a different format.
Could you please try again with version 4.3.5? PhpUnit uses different attribute names than the other implementations.
works perfectly
Thank you for quick reply and amazing implementation speed! Open source really rocks
I have clover.xml file that when I run it with:
ReportGenerator.exe -reports:clover.xml -targetDir:c:\html -verbosity:Verbose -reporttypes:html
it says
Parser: MProfParser
is there a way to force a different parser?
I'm using phpunit to generate the output in Clover XML format