bashcov
bashcov copied to clipboard
Code coverage tool for Bash
when running bashcov with shunit2 test case, i got "bashcov: warning: encountered an error parsing Bash's output (error was: expected integer for LINENO, got ""). This can occur if your...
Hi, The `simplecov` version is set to `0.15.1` in `bashcov` `1.8.2`. I'd like to use a more recent version. Are you planning a new release with the dependencies updates?
Hello, We maintain a shell 'standard library' that we use across our projects: https://github.com/sdelements/shtdlib/blob/master/shtdlib.sh If a script sources `shtdlib.sh`, would it be possible to use `bashcov` to determine which functions...
Hello, I am running bash unit (https://github.com/pgrange/bash_unit/blob/master/bash_unit) v1.6.1 script to run tests. Those tests are calling functions from a bash script previously sourced in the environment. I cannot get any...
Hi, My current script starts like this: ``` declare -x PS4='+ ${FUNCNAME[0]:+${FUNCNAME[0]}() }' PS4+='${FUNCNAME[0]:-(${BASH_SOURCE[0]}:${BASH_LINENO[0]}) }' ``` So bashcov seems a bit confused ... By injecting the bashcov version variable in...
I'm assuming here that `--mute` was added to suppress the output from scripts _under coverage_ bashcov generates some output of its own, like the "Run completed using ..." at the...
This snippet should have 100% coverage ``` #!/usr/bin/env bash function this_command_runs { true } function main { # awk script -> it just a long string passed to the awk....
For the same simple test script, bashcov runs fine on my PC, but crashes inside a minimal container. Here is the Dockerfile + script which reproduces the problem: https://gist.github.com/CyberShadow/79422aea8ee896378785c273b56ec07c (run...
Consider these scripts: ```bash cat > child.sh