Project

rcov_stats

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Rcov Stats provides rcov extension, so you could select test files and test covered files for units and functionals tests.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.8.2
~> 0.8.7
~> 0.9.9
 Project 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