Skip to content

minimum_coverage option is ignored, and missing coverage/.last_run.json file #96

@MathiasSven

Description

@MathiasSven

I found a workaround for now as a patch, I am not sure how you are supposed to properly pass the result to SimpleCov:

diff --git a/bin/bashcov b/bin/bashcov
index d7a63c1..01340e5 100755
--- a/bin/bashcov
+++ b/bin/bashcov
@@ -27,6 +27,8 @@ if SimpleCov.use_merging
   result = SimpleCov::ResultMerger.merged_result
 end

+SimpleCov.instance_variable_set(:@result, result)
+
 SimpleCov.at_exit do
   puts "Run completed using #{Bashcov.fullname}" unless Bashcov.mute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions