Patch #13068
Allow plugins to generate test coverage reports on MRI 1.9
Status: | New | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | - | |||
Target version: | - |
Description
The attached patch adds a rake task redmine:plugins:coverage, which uses SimpleCov to generate plugin test coverage reports.
History
#1
Updated by Harry Garrood about 10 years ago
Based on trunk r11307
#2
Updated by Harry Garrood almost 10 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.