File: coverage.rake

package info (click to toggle)
ruby-tty-command 0.10.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 452 kB
  • sloc: ruby: 1,990; makefile: 4; sh: 4
file content (11 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

desc "Measure code coverage"
task :coverage do
  begin
    original, ENV["COVERAGE"] = ENV["COVERAGE"], "true"
    Rake::Task["spec"].invoke
  ensure
    ENV["COVERAGE"] = original
  end
end