Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable coverage report for type shellscript
With `bashcov` and the following configuration for `simplecov` can you get coverage reports for you shell scripts. ```ruby # gem install simplecov-lcov simplecov-console require 'simplecov-lcov' require 'simplecov-console' SimpleCov.start do add_filter %r{^/.git} end # Monkeypatch # fortissimo1997/simplecov-lcov#25 if ! SimpleCov.respond_to?(:branch_coverage?) module SimpleCov def self.branch_coverage? false end end end SimpleCov::Formatter::LcovFormatter.config.report_with_single_file = true SimpleCov::Formatter::LcovFormatter.config do |c| c.output_directory = 'coverage' # default: "coverage/lcov" c.lcov_file_name = 'lcov.info' end SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ SimpleCov::Formatter::LcovFormatter, SimpleCov::Formatter::HTMLFormatter, SimpleCov::Formatter::Console ]) ```
- Loading branch information