Project

General

Profile

Actions

Feature #35259

closed

Output test coverage report to the console

Added by Dmitry Makurin almost 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

Redmine has its own html formatter for SimpleCow. Would be great to see default generated report in console log for LOC coverage.
It's useful for collecting metrics in gitlab.


Files

Adds_report_of_LOC_coverage.patch (847 Bytes) Adds_report_of_LOC_coverage.patch Dmitry Makurin , 2021-05-19 13:20
Actions #1

Updated by Go MAEDA almost 3 years ago

  • Target version set to Candidate for next major release
Actions #2

Updated by Go MAEDA almost 3 years ago

Here is a sample output after applying the patch.

laphroaig:redmine-trunk maeda$ bin/rake test:coverage
<snip>
..................................................................................................

Finished in 904.378688s, 5.5817 runs/s, 24.7385 assertions/s.
5048 runs, 22373 assertions, 0 failures, 0 errors, 8 skips

You have skipped tests. Run with --verbose for details.
Coverage report generated for Minitest to /path/to/redmine/coverage. 21915 / 23875 LOC (91.79%) covered.
Actions #3

Updated by Go MAEDA over 2 years ago

  • Subject changed from Test coverage report to Output test coverage report to the console
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version changed from Candidate for next major release to 5.0.0

Committed the patch. Thank you.

Actions #4

Updated by Go MAEDA over 2 years ago

  • Tracker changed from Patch to Feature
  • Resolution set to Fixed
Actions #5

Updated by Go MAEDA over 2 years ago

  • Category set to Code cleanup/refactoring
Actions

Also available in: Atom PDF