bashcov
bashcov copied to clipboard
Code coverage tool for Bash
# Description Running bashcov as non-root with the following command line: ``` bashcov -- ./main/idmdoctor export -l admin -u http://idmui.vmware:50000 -d ~/tmp/export/ ``` This results in the following error/stacktrace: ````...
The testsuite is failing with Bash 5.3: https://github.com/infertux/bashcov/actions/runs/19009545460/job/54288428226
I was playing around with the `mark_multiline` function in an attempt to remedy this, but I might need help from someone more familiar with ruby. Currently bashcov isn't picking up...
I get different results depending on the formatter used, which is really strange. E.g: ``` SimpleCov.formatter = SimpleCov::Formatter::CoberturaFormatter ``` Gives me: `561 / 713 LOC (78.68%) covered` ``` SimpleCov.formatters =...
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 diff --git a/bin/bashcov b/bin/bashcov index...
The output is spammed with multiple warnings like: `bashcov: warning: /tmp/bats-run-gmA9pG/4-urlencode.bats.src was executed but has been deleted since then - it won't be reported in coverage. ` I've tried different...
If you use `stub` command from bats-mock the test will fail with `line 24: !_STUB_DEBUG: unbound variable` This makes it impossible to use bashcov with bats-mock