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