-
Notifications
You must be signed in to change notification settings - Fork 126
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
scoverage:report fails on Windows7 #80
Comments
I think, it's a problem with |
I can confirm this issue to happen also on Windows 8.1, though it only appears on certain projects and not on all. Here is the output from mvn scoverage:report -e
Is there any update on this issue? |
@kupczyk and @Akrome - you have two different problems. @kupczyk's problem is related to aggregation in multimodule projects. @Akrome you use Maven, how do you add <build>
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
...
</build> it should work. If you add it as additional source root by using http://mojo.codehaus.org/build-helper-maven-plugin/add-source-mojo.html or http://davidb.github.io/scala-maven-plugin/add-source-mojo.html - it will not work, because Scalac Scoverage plugin does not support multiple source roots (yet?) and the first/main |
Hi @gslowikowski , this is from my pom
I have tried changing it to
as well as to
But i still get the same error. |
I have also tried setting it to a non-existing folder (/scala2) for testing, and it does not seem to affect it in anyway. Are you sure that's where it's taken from? |
I see scoverage tries to generate report for one of your test classes. This should not happen. Can you check why or attach maven execution log with debug info (-X parameter)? |
I found one of the issues. The HealthCheckTest class had a package header different than the folder structure. I fixed that, but now I have the issue in another test class, one that has the correct package header. Attached the -e -X output.
I have tried moving it away, but it just picks on another test class. You are right, it's trying to cover the test classes too. |
Tests compilation You bound this compilation to some earlier phase, which is wrong. Fix it or show me |
Thanks for your kindness. This is the section you requested, from the plugins section of the build section:
|
Remove |
I have commented out that whole < plugin > section without apparent effect on the result of mvn scoverage:report . I have updated the GDrive file with the new output of -e -X: |
You have to run |
That worked! Thanks so much for your help 👍 |
#109 + scoverage/sbt-scoverage#98 should fix @kupczyk 's case |
|
I want to point out that the issue reported in #74 hasn't been fixed in 1.0.2 version of scoverage plugin.
I tested it today and got the same error i.e.
error java.io.FileNotFoundException: C:\Us
ers\Piotr\Desktop\SpecDevs\developerka\specgine-devel\target\scala-2.11\scoverag
e-report\C:\Users\Piotr\Desktop\SpecDevs\developerka\specgine-devel\engine\src\m
ain\scala\animation\Tween.scala.html (The filename, directory name, or volume la
bel syntax is incorrect)
To reproduce this issue please run sbt verify command from master branch from https://bitbucket.org/specdevs/specgine
The text was updated successfully, but these errors were encountered: