Feature #35259

Output test coverage report to the console

Added by Dmitry Makurin 4 months ago. Updated about 1 month ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:-
Target version:5.0.0
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.

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

Associated revisions

Revision 21080
Added by Go MAEDA about 1 month ago

Output test coverage report to the console (#35259).

Patch by Dmitry Makurin.

History

#1 Updated by Go MAEDA 4 months ago

  • Target version set to Candidate for next major release

#2 Updated by Go MAEDA 4 months 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.

#3 Updated by Go MAEDA about 1 month 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.

#4 Updated by Go MAEDA about 1 month ago

  • Tracker changed from Patch to Feature
  • Resolution set to Fixed

Also available in: Atom PDF