-
Notifications
You must be signed in to change notification settings - Fork 38
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
compileScoverageScala waif with "bad option: -P:scoverage:sourceRoot:C:\" #194
Comments
I suspect this does not work with a path like --edit @rafalmag, could you test the replacement of ":" with File.pathSeparator on Windows please? |
Great, main issue fixed! Thanks, I was experimenting with Now the test: Regarding the
So no longer "bad option" error, but it seems it cannot read the coverage from reports. I checked the files:
and the test coverage is 50%, so I guess there might be still some minor, but similar bug in PS: The join seems to be required, as there are 3 files on the "-Xplugin" parameter list:
|
What is your Locale please? I wonder if there is a difference between the expected number format and the actual number format. --edit I have deployed 8.0.1 with the compilation fix |
Thanks for prompt deployment. BTW: Both |
I think the issue is in
but it always looks stange to see an English text with "," used in numbers - so I would propose to remove number formats localization from error messages as well. |
Published 8.0.2 with support for Windows and non-US locale |
Thanks for releasing v8.0.0 that supports scala 2.13.9+ (as previous Scala versions were affected by CVE-2022-36944 ).
However on Windows there is an issue that the report cannot be generated from Gradle plugin.
The error is:
Steps to reproduce:
Run test for org.scoverage.ScalaSingleModuleTest#checkScoverage on Windows, example by running command
gradlew :functionalTest --tests "org.scoverage.ScalaSingleModuleTest.checkScoverage"
.The very same test on tag 7.0.0 or 6.1.0 does not complain about "bad option", but fails with:
I guess that test is anyway not 100% compatible with Windows, but it would be already a progress if the test from tag v8.0.0 would at least produce "0% coverage" instead of failing with bad option.
Exception from org.scoverage.ScalaSingleModuleTest#checkScoverage (when added extra parameter "--stacktrace"):
Full output (from v8.0.0):
Part of the output with "--debug" flag:
The text was updated successfully, but these errors were encountered: