-
Notifications
You must be signed in to change notification settings - Fork 26
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
code coverage for integration tests; make coverage more visible #317
Comments
Some progress (internal):
Still missing source code linking for the integration tests, and the reports are not that useful without them. At first look, do the integration reports appear correct? I would have expected our integration coverage percent to by higher than our unit percent. |
After further hanging on option 1 above I have something that works. The above links should now have working code coverage reports. The workarounds are not super pretty but I think any problems would be confined to java-manta-it and not downstream users.
I'm not sure what I was looking at before, but the integration test coverage is showing as higher, matching my intuition. |
Previously code coverage reports were only generated as part of the `site` goal, and were thus rarely looked at. Binding the reports to the same phase ensures they are always available for inspection. Due to shading, several hoops need to be jumped through so that the integration test report can refer to the source and classes under test. Actions are bound to several maven phases to move files around, acting as if java-manta-client was part of the integration test module. ref TritonDataCenter#317
Previously code coverage reports were only generated as part of the `site` goal, and were thus rarely looked at. Binding the reports to the same phase ensures they are always available for inspection. Due to shading, several hoops need to be jumped through so that the integration test report can refer to the source and classes under test. Actions are bound to several maven phases to move files around, acting as if java-manta-client was part of the integration test module. ref TritonDataCenter#317
Previously code coverage reports were only generated as part of the `site` goal, and were thus rarely looked at. Binding the reports to the same phase ensures they are always available for inspection. Due to shading, several hoops need to be jumped through so that the integration test report can refer to the source and classes under test. Actions are bound to several maven phases to move files around, acting as if java-manta-client was part of the integration test module. ref TritonDataCenter#317
Previously code coverage reports were only generated as part of the `site` goal, and were thus rarely looked at. Binding the reports to the same phase ensures they are always available for inspection. Due to shading, several hoops need to be jumped through so that the integration test report can refer to the source and classes under test. Actions are bound to several maven phases to move files around, acting as if java-manta-client was part of the integration test module. ref TritonDataCenter#317
Previously code coverage reports were only generated as part of the `site` goal, and were thus rarely looked at. Binding the reports to the same phase ensures they are always available for inspection. Due to shading, several hoops need to be jumped through so that the integration test report can refer to the source and classes under test. Actions are bound to several maven phases to move files around, acting as if java-manta-client was part of the integration test module. ref #317
We currently generate code coverage information for unit tests but only generate a pretty report when the
site
goal is run. (So rarely, and not during the normal development workflow).It would be better to:
test
goal). This appears straightforward.To generate a report, jacoco needs access to the class files and reasonably expects them to be in
java-manta-client/target/classes
. However, because of (surprise!) our shade+relocation step the modified class files are only in the jar file. How jacoco keeps tracks of classes has its own page http://www.jacoco.org/jacoco/trunk/doc/classids.html and the interaction with other things that muck with bytecode is unhappy.Options moving forward:
The text was updated successfully, but these errors were encountered: