Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/isbadawi/coverage-example
Simplistic code coverage for Java
https://github.com/isbadawi/coverage-example
Last synced: 22 days ago
JSON representation
Simplistic code coverage for Java
- Host: GitHub
- URL: https://github.com/isbadawi/coverage-example
- Owner: isbadawi
- Created: 2013-05-03T23:30:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-03T23:33:57.000Z (over 11 years ago)
- Last Synced: 2024-04-18T04:11:25.480Z (7 months ago)
- Language: Java
- Homepage: http://ismail.badawi.io/blog/2013/05/03/writing-a-code-coverage-tool/
- Size: 137 KB
- Stars: 7
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is the code accompanying [this blog post][blog] about writing a code
coverage tool. The code is more or less as described in the post, except
for some small things like a nicer command line interface.Unlike the code in the post, this uses maven, so you should be
able to compile with```bash
mvn compile
```and run the instrumentation with
```bash
mvn exec:java -Dcoverage.report.path=baseline.lcov \
-Dexec.mainClass="io.badawi.coverage.Main" -Dexec.args="-d instrumented "
```You need `lcov` and `genhtml` to work with the generated coverage reports.
These are pretty widespread and should be easy to get via whatever package
manager you use (I've tried `sudo apt-get install lcov` on Ubuntu and
`brew install lcov` on OS X).[blog]: http://ismail.badawi.io/blog/2013/05/03/writing-a-code-coverage-tool/