diff --git a/README.md b/README.md index f77da9ac..a3cfd98d 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ ![Tests](https://github.com/rsksmart/rsk-powhsm/actions/workflows/run-tests.yml/badge.svg) ![Python linter](https://github.com/rsksmart/rsk-powhsm/actions/workflows/lint-python.yml/badge.svg) ![C linter](https://github.com/rsksmart/rsk-powhsm/actions/workflows/lint-c.yml/badge.svg) -![Middleware coverage](https://img.shields.io/endpoint?url=https://d16sboe9lzo4ru.cloudfront.net/middleware_coverage_report/badge.json) -![Firmware coverage](https://img.shields.io/endpoint?url=https://d16sboe9lzo4ru.cloudfront.net/firmware_coverage_report/badge.json) +[![Middleware coverage](https://img.shields.io/endpoint?url=https://d16sboe9lzo4ru.cloudfront.net/middleware_coverage_report/badge.json)](https://d16sboe9lzo4ru.cloudfront.net/middleware_coverage_report/index.html) +[![Firmware coverage](https://img.shields.io/endpoint?url=https://d16sboe9lzo4ru.cloudfront.net/firmware_coverage_report/badge.json)](https://d16sboe9lzo4ru.cloudfront.net/firmware_coverage_report/index.html) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE) diff --git a/ledger/coverage/gen-coverage b/ledger/coverage/gen-coverage index 84756f84..db4d2f63 100755 --- a/ledger/coverage/gen-coverage +++ b/ledger/coverage/gen-coverage @@ -25,7 +25,7 @@ if [[ $1 == "exec" ]]; then popd > /dev/null lcov --capture --directory $SRCDIR --list-full-path --output-file $BASEDIR/coverage.info - genhtml $BASEDIR/coverage.info --output $BASEDIR/output -p $SRCDIR + genhtml $BASEDIR/coverage.info --output $BASEDIR/output -p $SRCDIR -t "powHSM firmware" lcov --summary $BASEDIR/coverage.info | grep lines | sed -e "s/.\+lines.\+: \([[:digit:].]\+\).\+/\1/g" > $BASEDIR/output/total mv $BASEDIR/coverage.info $BASEDIR/output else diff --git a/middleware/test-all-coverage b/middleware/test-all-coverage index ade247ed..1b753537 100755 --- a/middleware/test-all-coverage +++ b/middleware/test-all-coverage @@ -10,7 +10,7 @@ if [[ $1 == "exec" ]]; then rm -rf coverage coverage erase coverage run -m unittest discover - coverage html -d coverage + coverage html -d coverage --title="powHSM middleware" coverage report --format=total > coverage/total echo "Wrote total to coverage/total" coverage erase