diff --git a/requirements.check.txt b/requirements.check.txt index cb69e3b89..898c8d13a 100644 --- a/requirements.check.txt +++ b/requirements.check.txt @@ -17,7 +17,7 @@ coverage>=5.4 # httpx is needed for running server-related unit tests. httpx # This is needed for converting Gcov coverage files to a human-readable JSON format. -gcovr +gcovr>=8.3 # Integration tests lit>=0.11.0.post1 diff --git a/strictdoc/backend/sdoc_source_code/coverage_reports/gcov.py b/strictdoc/backend/sdoc_source_code/coverage_reports/gcov.py index 35d911c1b..9748ab7a6 100644 --- a/strictdoc/backend/sdoc_source_code/coverage_reports/gcov.py +++ b/strictdoc/backend/sdoc_source_code/coverage_reports/gcov.py @@ -138,7 +138,7 @@ def read_from_string( file_section.section_contents.append(non_covered_functions_section) for json_function_ in json_file_["functions"]: - json_function_name = json_function_["demangled_name"] + json_function_name = json_function_["name"] is_function_covered = json_function_["execution_count"] > 0 stats.add_function(is_function_covered)