When running ape test --coverage the coverage report displayed several inconsistencies.
Some lines that were sandwiched between two lines that were covered were not. After looking at the XML file some more inconsistencies were found. The two lines above and beyond the not-covered one displayed a different number of hits.
I have also noticed that some of the natspec code is considered part of the code that needs tests and will appear in the XML report with zero hits.
While I was looking at the XML report, I made a small tool to compile the XML into a more readable HTML file that might help you while fixing this issue, it can be found here
Environment information
ape
and plugin versions: 0.7.11ape-config.yaml
(NOTE: do not post anything private like RPC urls or secrets!):What went wrong?
Please include information like:
When running
ape test --coverage
the coverage report displayed several inconsistencies. Some lines that were sandwiched between two lines that were covered were not. After looking at the XML file some more inconsistencies were found. The two lines above and beyond the not-covered one displayed a different number of hits.I have also noticed that some of the natspec code is considered part of the code that needs tests and will appear in the XML report with zero hits.
While I was looking at the XML report, I made a small tool to compile the XML into a more readable HTML file that might help you while fixing this issue, it can be found here
The node used to test was a neithermind node.