Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

One way to prevent untested functions from being included in the coverage report is to use code coverage tools that allow for specifying which functions or lines of code to exclude from the report. For example, in Python, the coverage.py tool allows for excluding specific functions or files from the report using the .coveragerc configuration file. Another way is to follow best practices and ensure that all functions and lines of code are properly tested before merging them into the main branch of the codebase. This can be achieved through code reviews and automated tests that run on every pull request. Additionally, developers can use static code analysis tools to catch potential issues before they make it into the main branch.