Context While trying to build a/the --exclude/--ignore option to bashcov I am experiencing some difficulties in determining where to start. Bashcov ...
Context While trying to build a/the --exclude/--ignore option to bashcov I am experiencing some difficulties in determining where to start. Bashcov ...
Where is the best place to put the bats aka test files? Do you put them in the same directory as the bash scripts you are testing? If you put them in ...
Trying to get into Shell testing with Bash (5.1.16), using Bats Core. I ran into an issue while trying to test formatting, and already spent 2 hours o ...
I don't have much experience with bash/shell scripting and just recently started writing some bash scripts with unit tests using Bats framework or lib ...
I am having a set of .bat files . each file contains some tests. How can i disable one of the test ? the following is an example I want to ignore ...
While trying to write a robust bash method that detects whether a variable that consists of multiple lines of text, contains a substring (that may con ...
I'm using bats to test some bash scripts. In one of the test, I need to mount a generated iso disk image and make assertions on its content. When I t ...
While trying to assert_failure on a function called some_function, I'm experiencing some difficulties passing more than 1 argument. Where the funct ...
. Answers to this question are eligible for a +100 reputation bounty. a ...
While trying to test a method that checks for 5 seconds whether a GitLab server is running, I am experiencing some difficulties in detecting the error ...
Context While testing the functions of an installation script that automatically installs and runs GitLab and GitLab runners, I experienced some diff ...
I have the following in some of my tests: tmpdir=$(mktemp -d) trap 'echo @@@@@@@@@@@@@@@@@@@ >&3' INT TERM HUP EXIT # trap is really meant to ...
This is a bats test script I wrote I want $TEST_NAME to have the same value in setup.txt and runtest.txt but they have different UUIDS(same prefix ...
Context While writing a test that expects an exception/error to be thrown, I am experiencing some difficulties detecting the error. The code install ...
After setting up a bats test framework that can test shell scripts in some directory, I am trying to expand the bats tests to test a shell function th ...
I have a function that checks for both the existence of a file and if it's executable. I have a script that is requiring dos2unix. Since dos2uni ...
I am invoking an interactive cli tool I have created (using go but that's not in the question's scope). I am performing integration tests on it using ...
I'm looking forward to reuse code for bats unit tests on different environments. What I want to know if it's possible to have common @test code for bo ...
I am using BATS testing framework with bats-assert and bats-support. I want to ensure that the user remembered to set the ELASTIC_CREDS env variable ...
In the OOP universum, there is a lot of information on how to desgin and refactor code to make it unit testing friendly. But I wonder, how to apply/tr ...