pitest icon indicating copy to clipboard operation
pitest copied to clipboard

>=1.4.3 WithHistory not generating properly the report

Open jose-brandao opened this issue 7 years ago • 6 comments

Hi,

From >=1.4.3 when running with history all the content on the pit-report folder is replaced with an empty XML.

With version 1.4.2 if I run with withHistory the report is properly generated including the HTML report.

Can somebody help ?

jose-brandao avatar Feb 14 '19 14:02 jose-brandao

Did you cleat out the history file when you upgraded the version? It will fail with an (unhelpful) error if you do not.

Pitest 1.4.5 runs fine with withHistory on sample projects. Can you provide an example project that reproduces the issues you're seeing along with the precise steps to reproduce?

hcoles avatar Feb 14 '19 14:02 hcoles

Basically: *Run pit withHistory = false; Report is generated ok and the pit-report folder has the HTML report. *Re-run with withHistory = true and the content of the folder is replaced with the xml report empty. Pit runs well in this case the report is just not showing anything.

I have not cleared between versions but I runned without history on the same version and then with history. This should replace the history for a specific version right?

jose-brandao avatar Feb 14 '19 14:02 jose-brandao

The history file is brittle and will often not be compatible between versions. It should be deleted when you switch versions.

Running without history does not delete the file.

hcoles avatar Feb 14 '19 15:02 hcoles

Where is the location of the history file by default ?

jose-brandao avatar Feb 14 '19 15:02 jose-brandao

The file location is logged at info level.

hcoles avatar Feb 14 '19 16:02 hcoles

I deleted the file, upgraded the version and it worked. Thanks

jose-brandao avatar Feb 14 '19 17:02 jose-brandao