RubyMine 7.0.1 Web Help

If a test is launched via a Rake task, it is the user's responsibility to provide code coverage measurement.

To enable rcov for Test::Unit run/debug configuration

It is supposed that you have a special Rake task that collects code coverage information via rcov.

  1. Open for editing your *.rake file, and add the following code:
                require  'rcov/rcovtask'
                do  |t|
           t.libs << "test"
           t.test_files = FileList ['test/**/*_test.rb']
           t.verbose = true
  2. Create run/debug configuration for the task 'rcov' and run it with coverage.

See Also


External Links:

Web Resources: