You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for your work on this project! While trying to run Bashcov on a basic BATS testing repo in a .GitLab-CI.yml:
image: vergissberlin/alpine-developmentstages:
- build
- deploytest:
stage: buildimage: ruby:slimbefore_script:
- gem install bashcovscript:
# bashcov cannot run as root so here's a magic user
- useradd -s /bin/bash user
- su user -c "$(command -v bashcov) test"coverage: '/\(\d+\.\d+%\) covered/'artifacts:
untracked: true
I receive the error:
bashcov: warning: encountered an error parsing Bash's output (error was: expected integer for LINENO, got ""). This can occur if your script or its path contains the sequence "010ae148-b419-4384-b227-69b97f25cdb6", or if your script unsets LINENO. Aborting early; coverage report will be incomplete.
So after scanning the tested repo I noticed the bats installation packages at: test/libs/bats/* contain the $lineno variable.
So I thought I would perhaps be able to circumvent this error by adding the test/libs/bats/* dir to the ignored folders when I run bashcov with:
bashcov bats test
However, after inspecting the documentation:
bashcov --help
Usage: bashcov [options] [--] <command> [options]
Examples:
bashcov ./script.sh
bashcov --skip-uncovered ./script.sh
bashcov -- ./script.sh --some --flags
bashcov --skip-uncovered -- ./script.sh --some --flags
Specific options:
-s, --skip-uncovered Do not report uncovered files
-m, --mute Do not print script output
--bash-path PATH Path to Bash executable
--root PATH Project root directory
--command-name NAME Value to use as SimpleCov.command_name
Common options:
-h, --help Show this message
--version Show version
I did not find an option to ignore certain folders. Hence, I would like to ask:
How can I specify ignored folders and files when running bashcov bats test?
The text was updated successfully, but these errors were encountered:
The --exclude/--ignore option is supported through a SimpleCov configuration file. In the root directory of one's own project, one can add a .simplecov file with content:
Thank you for your work on this project! While trying to run Bashcov on a basic BATS testing repo in a
.GitLab-CI.yml
:I receive the error:
So after scanning the tested repo I noticed the bats installation packages at:
test/libs/bats/*
contain the$lineno
variable.So I thought I would perhaps be able to circumvent this error by adding the
test/libs/bats/*
dir to the ignored folders when I runbashcov
with:However, after inspecting the documentation:
I did not find an option to ignore certain folders. Hence, I would like to ask:
How can I specify ignored folders and files when running
bashcov bats test
?The text was updated successfully, but these errors were encountered: