Shell script coverage in Codecov with mocked commands – any working approach?

invalid@example.com (harsh04044), harsh04044
Tue, 10 Feb 2026 15:41:29 +0000
Talawa - API

Hi everyone,

I’ve been working on adding a testing regime for our installation scripts (bash) and integrating that with Codecov. The tests are in place and running in CI, and we’ve got an “install” flag showing up in Codecov. The problem we’re stuck on is how to get *real* coverage for those shell scripts.

Here’s the situation: our tests mock things like `brew`, `docker`, and `fnm` so we don’t actually run those commands in CI. That’s great for safety and speed, but tools we’ve tried (kcov...