Skip to content

Commit f6f9818

Browse files
committed
Don't require Runner until actually needed
This prevents printing confusing SimpleCov output when running `bashcov --help` or `bashcov --version`.
1 parent 50d8c01 commit f6f9818

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/bashcov

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ require "bashcov"
88

99
Bashcov.parse_options! ARGV
1010

11+
require "bashcov/runner"
12+
1113
runner = Bashcov::Runner.new Bashcov.command
1214
status = runner.run
1315
coverage = runner.result

lib/bashcov.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
require "optparse"
44
require "pathname"
55

6-
require "bashcov/runner"
76
require "bashcov/version"
87

98
# Bashcov default module

0 commit comments

Comments
 (0)