Skip to content

Commit

Permalink
Output Bashcov and dependency versions for easier debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
infertux committed Jan 12, 2018
1 parent 84b211c commit 2640ee2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion bin/bashcov
Expand Up @@ -23,6 +23,9 @@ if SimpleCov.use_merging
result = SimpleCov::ResultMerger.merged_result
end

SimpleCov.at_exit { result.format! }
SimpleCov.at_exit do
puts "Run completed using #{Bashcov.fullname}"
result.format!
end

exit status.exitstatus
4 changes: 2 additions & 2 deletions lib/bashcov.rb
Expand Up @@ -53,9 +53,9 @@ def fullname
[
program_name,
VERSION,
"(with Bash #{BASH_VERSION},",
"with Bash #{BASH_VERSION},",
"Ruby #{RUBY_VERSION},",
"and SimpleCov #{SimpleCov::VERSION})",
"and SimpleCov #{SimpleCov::VERSION}.",
].join(" ")
end

Expand Down
2 changes: 1 addition & 1 deletion spec/bashcov_spec.rb
Expand Up @@ -31,7 +31,7 @@
describe ".command_name" do
before { Bashcov.command = ["touch", "/tmp/a/file"] }

it "Includes .command stringified" do
it "includes .command stringified" do
expect(Bashcov.command_name).to eq Bashcov.command.compact.join(" ")
end
end
Expand Down

0 comments on commit 2640ee2

Please sign in to comment.