Sign inSign up

1121citrus/bats-kcov

By 1121citrus

Updated 3 months ago

A Docker image bundling kcov, bats, and jq for measuring bash/shell test coverage in CI pipelines.

Image
0

4.1K

1121citrus/bats-kcov repository overview

1121citrus/bats-kcov

A Docker image bundling kcov, bats, and jq for measuring bash/shell test coverage in CI pipelines.

kcov is a coverage tool for languages with DWARF debug information support. For bash scripts, it instruments code using Linux's ptrace(2) API to record which lines are executed.

Synopsis

This image packages three tools together so CI pipelines can measure bash coverage without an inline image build step:

ToolPurpose
kcovBash coverage via ptrace(2) with LCOV/JSON output
batsBash Automated Testing System — the test runner
jqJSON processor for parsing kcov's coverage.json output

See the GitHub repository for details.

Tag summary

Content type

Image

Digest

sha256:d86ba9634

Size

17.9 MB

Last updated

3 months ago

docker pull 1121citrus/bats-kcov