Covered uses modern Ruby features to generate comprehensive coverage, including support for templates which are compiled into Ruby.
- Incremental coverage - if you run your full test suite, and the run a subset, it will still report the correct coverage - so you can incrementally work on improving coverage.
- Integration with Sus, Git, RSpec and Minitest- no need to configure anything - out of the box support for these platforms.
- Supports coverage of views - templates compiled to Ruby code can be tracked for coverage reporting.
Originally, Ruby coverage tools were unable to handle eval
ed code. This is because the coverage
module built into
Ruby doesn't expose the necessary hooks to capture it. Using the parser gem and
trace points allows us to do our own source code analysis to compute executable lines, thus making it possible to
compute coverage for "templates".
After this concept prooved useful, it was integrated directly into Ruby.
Please see the project documentation for more details.
-
Getting Started - This guide explains how to get started with
covered
and integrate it with your test suite. -
Configuration - This guide will help you to configure covered for your project's specific requirements.
Please see the project releases for all releases.
- Drop development dependeny on
trenni
and add dependeny onxrb
.
- simplecov – one of the original coverage implementations for Ruby, uses
the built-in
coverage
library. - sus - a test framework which uses
covered
to generate coverage reports.
We welcome contributions to this project.
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin my-new-feature
). - Create new Pull Request.
In order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.