Patch #13068

Allow plugins to generate test coverage reports on MRI 1.9

Added by Harry Garrood over 9 years ago. Updated over 9 years ago.

Status:NewStart date:
Priority:NormalDue 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.

coverage_for_plugin_tests_on_mri_19.patch Magnifier (1.05 KB) Harry Garrood, 2013-02-03 17:11

History

#1 Updated by Harry Garrood over 9 years ago

Based on trunk r11307

#2 Updated by Harry Garrood over 9 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.

Also available in: Atom PDF