Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML generation doesn't show the code #754

Closed
AnakinPt opened this issue Apr 13, 2020 · 4 comments
Closed

HTML generation doesn't show the code #754

AnakinPt opened this issue Apr 13, 2020 · 4 comments

Comments

@AnakinPt
Copy link

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?

@szpak
Copy link
Contributor

szpak commented Apr 13, 2020

Most likely this is a duplicate of szpak/gradle-pitest-plugin#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.

@AnakinPt
Copy link
Author

I tried with 1.4.7 and doesn't work.

@davidburstrom
Copy link
Contributor

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

@szpak
Copy link
Contributor

szpak commented May 21, 2020

@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.

@hcoles hcoles closed this as completed Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants