Sha256: aac6c77f96c6812e2a4002d1a7c997b7a024c9e055d35d9efc6ab4e5352c8e97

Contents?: true

Size: 1.04 KB

Versions: 1

Compression:

Stored size: 1.04 KB

Contents

# ==========================================================================
#  Construction de la tache rcov (couverture des tests sur le code)
#  author: Vincent Dubois
#  date: 06 fevrier 2009
# ==========================================================================
class RcovBuilder
  include Utils

  # Implementation de la construction de la tache
  def build(project_name, auto_install, proxy_option)
      # On verifie la presence de rcov
      Utils.verify_gem_presence("rcov", auto_install, proxy_option)
      # On lance la generation
      puts " Building rcov code coverage report..."
      rcov_pass = Utils.run_command("rcov --rails --exclude rcov,rubyforge,builder,mime-types,xml-simple test/rcov*.rb")
      if rcov_pass.index("Finished in").nil?
        raise " Execution of rcov failed with command 'rcov --rails --exclude rcov,rubyforge test/rcov*.rb'.\n BUILD FAILED."
      end
      # On recupere le rapport genere
      Dir.mkdir "#{Continuous4r::WORK_DIR}/rcov"
      FileUtils.mv("coverage", "#{Continuous4r::WORK_DIR}/rcov/")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
continuous4r-0.0.2 lib/rcov_builder.rb