-
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
Support multiple source roots in report generators #104
Comments
…, aggretated reports draft.
I've forked Scalac plugin repo to https://github.com/gslowikowski/scalac-scoverage-plugin/tree/issue104, required changes are in commit gslowikowski@24039a2 What's in this revision:
I've forked Maven plugin repo to https://github.com/gslowikowski/scoverage-maven-plugin/tree/issue104, required changes are in commit gslowikowski/scoverage-maven-plugin@d9076f8 Because source roots can be added dynamically during the build, they should be stored somewhere just before compilation because:
The last forked repository https://github.com/gslowikowski/scoverage-maven-samples/tree/issue104 contains changed Maven sample projects working with the above two (Scalac and Maven) patched libraries.
OK, that's all for today. I would like to discuss this feature. This seems to be trivial, but it's not. I thought about this since long time and this must be implemented IMO sooner or later. There are many issues reported which will be fixed. Check my code, please, and write what you think about it. |
thanks for this - re: multiple source roots - I agree that there are multiple source roots per project, but I don't agree that it is appropriate to squash the HTML files to the package level. Scala is not as restrictive as Java; two files can share the same name and location in the 'package' structure yet contain different classes. I do agree that the report should fail if the source file cannot be found. |
re: the path of the generated HTML files, it's been my recent experience that web browsers now hide the finer details of the URL from users. For example, my browser is displaying 'GitHub, Inc.' rather than the full |
I've created PR for this issue. PRs for SBT and Maven will be created in a moment. Everything works as expected. One change (gslowikowski@f3a6489) is not backward compatible. This was done intentionally. In |
Yaay, this should resolve some of my problems with scoverage ! Thanks Grzegorz. |
@sksamuel can you review my PRs for this issue: #109 + scoverage/sbt-scoverage#98 ? |
Support multiple source roots in report generators (issue #104)
Support multiple source roots in report generators (issue #104)
Coveralls doesn't like relative paths for filenames for classes in the Cobertura report. Is there a workaround for this? If not I'm happy to file an issue. Thanks! |
I've prepared https://github.com/gslowikowski/sbt-coveralls/commits/scoverage-1_1_x-compatibility. This, ore something similar, should be implemented for future @rorygraves, this is for you. I did it some time ago. If I remember, you said, you will work on this too. I have no time to test it yet. |
All supported build tools (SBT, Gradle and Maven) support multiple source roots, but Scoverage requires only one sourceDirectory passed to
ScoverageHtmlWriter
andScoverageXmlWriter
.I've prepared working prototype with solution to this limitation. Let me commit everything first and then I will comment what we will gain (this will fix many different bugs reported).
The text was updated successfully, but these errors were encountered: