pitest icon indicating copy to clipboard operation
pitest copied to clipboard

HTML generation doesn't show the code

Open AnakinPt opened this issue 4 years ago • 4 comments

When I run the gradle plugin, using version 1.4.8, the HTML report doesn't show the code.

I'm using this configuration: pitest { excludedClasses = ["someClass"] testPlugin = 'junit5' junit5PluginVersion = '0.12' verbose = true timestampedReports = false mutationThreshold=60 }

Do I need to pass any extra parameter?

And this also doesn't run in Windows, because of the large command line for the javaExec. is there a way to fix this?

AnakinPt avatar Apr 13 '20 14:04 AnakinPt

Most likely this is a duplicate of https://github.com/szpak/gradle-pitest-plugin/issues/198. To confirm that you can switch back to 1.4.7 which should "fix" it. In that case you can close the issue here as it is the Gradle plugin specific.

szpak avatar Apr 13 '20 14:04 szpak

I tried with 1.4.7 and doesn't work.

AnakinPt avatar Apr 16 '20 09:04 AnakinPt

@AnakinPt As for your classpath issue on Windows, the Gradle plugin has support for useClasspathFile = true which should solve your issue.

davidburstrom avatar May 21 '20 17:05 davidburstrom

@AnakinPt Please try again with the latest 1.5.1. There is a functional test for source code available in the HTML report which passes on Linux, Mac and Windows. Therefore, if you still has a problem in your project please prepare Minimal, Reproducible Example as you might hit some corner case.

@davidburstrom useClasspathFile = true might help in the situation the classpath used in the project is too long for the maximum allowed number of chars in Windows. I'm not sure if it is a case here.

szpak avatar May 21 '20 20:05 szpak