diff --git a/scripts/generate-code-coverage-html.sh b/scripts/generate-code-coverage-html.sh
index f56ca374b8..c722dbc954 100755
--- a/scripts/generate-code-coverage-html.sh
+++ b/scripts/generate-code-coverage-html.sh
@@ -4,4 +4,6 @@ set -e # fail on any error
set -u # treat unset variables as error
cargo install cargo-tarpaulin
-cargo tarpaulin --out Html
+git submodule init
+git submodule update
+cargo tarpaulin --all --out Html --skip-clean --no-fail-fast