Provides rcov extenstion, so you could select test files and test covered files for units and functionals tests
JavaScript Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
lib
tasks
templates
.gitignore
CHANGELOG
MIT-LICENSE
README
Rakefile
init.rb
rcov_stats-1.1.6.gem
rcov_stats-2.0.0.gem
rcov_stats-2.0.1.gem
rcov_stats-2.1.0.gem
rcov_stats-2.1.1.gem
rcov_stats-2.2.0.gem
rcov_stats-2.2.1.gem
rcov_stats-2.2.2.gem
rcov_stats-2.2.3.gem
rcov_stats.gemspec

README

RcovStats
=========

RcovStats provides rcov extension, so you can select test files and test covered files for unit and functional tests.

How to install :

** for Merb:
  gem install rcov_stats
  ## puts this dependency inside your config/init.rb file ##
  dependency "rcov_stats"
** for Rails
  ## puts this into Gemfile file ##
  gem "rcov_stats"

  ## puts also this code to RakeFile (for Rails3 before Application.load_tasks)

  begin
    require 'rcov_stats_tasks'
  rescue LoadError; end



How to configure

After installation (initialization) you can see rcov_stats.yml in /config directory.
You can specify there :
  - files or directories to be covered by unit tests to cover (units_files_to_cover)
  - files or directories to be covered by functional tests to cover (functionals_files_to_cover)
  - test files or directories with test files which will be used for unit testing (units_files_to_test)
  - test files or directories with test files which will be used for functional testing (functionals_files_to_test)
  - action which will be used before running test suite (before_rcov -> by default db:test:prepare)


You can run:
- rake rcov:stats (includes rcov:units and rcov:functionals)
- rake rcov:units
- rake rcov:functionals
- rake rcov:general (includes rcov:units and rcov:functionals, but counts one general coverage and puts all results in one output directory)



Copyright (c) 2010 [bartes], released under the MIT license