Closed davehouser1 closed 2 years ago
I want to be able to run the following:
sudo kcov --clean --include-path=/home/jenkins /var/www/html/ sudo bats ./test_script.bats
However kcov only runs tests against sudo, which gives no results. how can I get kcov to look past sudo in the syntax of the executable to run?
sudo
sudo bats ./test_script.bats
More details found here in this post
Nm, I just realized I was reading kcov output incorrectly. My command works fine without the sudo before bats. Closing.
bats
I want to be able to run the following:
However kcov only runs tests against
sudo
, which gives no results. how can I get kcov to look past sudo in the syntax of the executable to run?sudo bats ./test_script.bats
in quotes.sudo bats ./test_script.bats
must be run for tests to be run properly.More details found here in this post