Image with kcov and shunit2 to execute tests and generate a code coverage report
1.6K
Fun programming with bash and docker!
Image with kcov and shunit2 to execute tests and generate a code coverage report.
Built with ❤︎ by Anderson Santos and contributors
You must mount the source code and execute the test script inside the image with kcov command. The example is bellow.
There is a repository with a example of a bash script using this image at: https://github.com/supergarotinho/bashtest-example
Example of use:
docker run --rm \
--security-opt seccomp=unconfined \
-v "$(pwd)":/source \
-e "TERM=xterm-256color" supergarotinho/bashtest kcov --exclude-path=/root/shunit2 ./coverage ./test/unit-test.sh
See also the list of contributors who participated in this project.
This project is licensed under the BSD-3 License - see the LICENSE.md file for details
Content type
Image
Digest
Size
115.5 MB
Last updated
over 7 years ago
docker pull supergarotinho/bashtest