Instrument stdlib with codecoverage and sanitizers
Opened this issue · 3 comments
Motivation
I think it would be advisable for stdlib to count with a strong validation process beyond the current testing framework. Typically
-
Codecoverage:
Codecov: https://about.codecov.io/blog/the-best-code-coverage-tools-by-programming-language/
GCC: https://github.com/gcovr/gcovr
Intel: https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-8/code-coverage-tool.html -
Sanitizers:
A howto guide for gcc sanitizer: https://www.osc.edu/resources/getting_started/howto/howto_use_address_sanitizer
Intel : https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2024-1/sanitizers.html
These tools can be used as github actions to produce html reports to help improve the code quality.
Prior Art
No response
Additional Information
No response
I think it is a good idea. But I have no experience with these tools.
Other Fortran libraries such as json-fortran already implement these tools and could serve as an inspiration for the CI setup
The Fortran-lang project test-drive also uses such tools.