pitest
pitest copied to clipboard
HTML generation doesn't show the code
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?
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.
I tried with 1.4.7 and doesn't work.
@AnakinPt As for your classpath issue on Windows, the Gradle plugin has support for useClasspathFile = true
which should solve your issue.
@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.