kcov

Code coverage tool for compiled programs, Python, and shell scripts

brewmacoslinux
Try with needOr install directly
Source

About

Code coverage tester for compiled programs, Python, and shell scripts

Commands

kcov

Examples

Generate coverage report for a compiled C program$ kcov coverage-output ./my_program arg1 arg2
Generate coverage report for a shell script$ kcov coverage-output bash ./script.sh
Generate coverage report for a Python script$ kcov coverage-output python3 ./script.py