Skip to content

Commit 2cd83bd

Browse files
committed
🔨 kettle-soup-cover rake task
1 parent cb0311f commit 2cd83bd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Rakefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ defaults = []
55
# See: https://docs.gitlab.com/ci/variables/predefined_variables/
66
is_gitlab = ENV.fetch("GITLAB_CI", "false").casecmp("true") == 0
77

8+
### DEVELOPMENT TASKS
9+
# Setup Kettle Soup Cover
10+
begin
11+
require "kettle-soup-cover"
12+
13+
Kettle::Soup::Cover.install_tasks
14+
# NOTE: Coverage on CI is configured independent of this task.
15+
# This task is for local development, as it opens results in browser
16+
defaults << "coverage" unless Kettle::Soup::Cover::IS_CI
17+
rescue LoadError
18+
desc("(stub) coverage is unavailable")
19+
task("coverage") do
20+
warn("NOTE: kettle-soup-cover isn't installed, or is disabled for #{RUBY_VERSION} in the current environment")
21+
end
22+
end
23+
824
# Setup Bundle Audit
925
begin
1026
require "bundler/audit/task"

0 commit comments

Comments
 (0)