Project

General

Profile

Actions

Patch #13068

open

Allow plugins to generate test coverage reports on MRI 1.9

Added by Harry Garrood almost 12 years ago. Updated almost 12 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

The attached patch adds a rake task redmine:plugins:coverage, which uses SimpleCov to generate plugin test coverage reports.


Files

Actions #1

Updated by Harry Garrood almost 12 years ago

Based on trunk r11307

Actions #2

Updated by Harry Garrood almost 12 years ago

I can't get this to work anymore :( now fails (trunk r11399) with:

/home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/test/unit.rb:167:in `block in non_options': file not found: redmine:plugins:coverage (ArgumentError)
        from /home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/test/unit.rb:146:in `map!'
        from /home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/test/unit.rb:146:in `non_options'
        from /home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/test/unit.rb:207:in `non_options'
        from /home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/test/unit.rb:52:in `process_args'
        from /home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/minitest/unit.rb:891:in `_run'
        from /home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/minitest/unit.rb:884:in `run'
        from /home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/test/unit.rb:21:in `run'
        from /home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/test/unit.rb:326:in `block (2 levels) in autorun'
        from /home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/test/unit.rb:27:in `run_once'
        from /home/garrood/.rbenv/versions/1.9.3-p374/lib/ruby/1.9.1/test/unit.rb:325:in `block in autorun'
Coverage report generated for Unit Tests to /home/garrood/code/redmine/coverage. 3904 / 14492 LOC (26.94%) covered.
Actions

Also available in: Atom PDF