Sha256: 8ba8704cb81de401b85e119e0ff5b9786686ed09ceae8d1226c9eef8bacf1f94

Contents?: true

Size: 587 Bytes

Versions: 13

Compression:

Stored size: 587 Bytes

Contents

#!/usr/bin/env ruby
require "bundler/setup"
require "pry"

covered_path = ARGV[0]
if covered_path
  $LOAD_PATH.unshift(covered_path)
end
require "deep_cover"

if covered_path.nil?
  covered_path = DeepCover::Tools.dump_covered_code_and_save('./lib', dest_path: '../covered_deep_cover')
  puts "Covered code generation done. Output in", covered_path
  exec 'bin/selfcov', covered_path
else
  coverage = DeepCover::Coverage.load(covered_path)
  require 'rspec'
  error = RSpec::Core::Runner::run(Dir.glob('./spec/*_spec.rb'))
  puts "Lines not covered:", coverage.report
  binding.pry
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
deep-cover-0.1.14 bin/selfcov
deep-cover-0.1.13 bin/selfcov
deep-cover-0.1.12 bin/selfcov
deep-cover-0.1.11 bin/selfcov
deep-cover-0.1.10 bin/selfcov
deep-cover-0.1.9 bin/selfcov
deep-cover-0.1.8 bin/selfcov
deep-cover-0.1.7 bin/selfcov
deep-cover-0.1.6 bin/selfcov
deep-cover-0.1.5 bin/selfcov
deep-cover-0.1.4 bin/selfcov
deep-cover-0.1.3 bin/selfcov
deep-cover-0.1.2 bin/selfcov