Adds a report in markdown format. This can be useful in CI context or for LLMs.
gem install simplecov-markdown
require 'simplecov-markdown'
SimpleCov.formatter = SimpleCov::Formatter::MarkdownFormatterif you want to configure multiple formatters:
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::MarkdownFormatter
])LLMs and CI environments work well also with simplecov-console.
- Support branch coverage
- Sorted results by coverage — files are now sorted ascending by coverage percentage, so the least covered files appear first
- Missing line numbers — the report now includes a "Missing line numbers" column listing the exact line numbers not covered, instead of just a count
- Revised table columns — columns reordered and renamed:
Coverage,File,Total lines,Total missed,Missing line numbers - Ruby 4.0 support — tested against Ruby 3.2, 3.3, and 4.0 via GitHub Actions CI
- Dropped legacy dependencies — removed
coveralls,rspec-temp_dir, and loosenedbundler/rakeversion constraints
Initial release by holyshared.