Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

TDD, test coverage for Fortran

Denis_Bannikov
Beginner
122 Views

Hi, all.
My question is about measuring test-coverage in Fortran code.

I have searched on the Forum for TDD and have found only one dead topic
12/02/2003  "Unit Testing with Fortran" https://software.intel.com/en-us/forums/intel-visual-fortran-compiler-for-windows/topic/273128

Current status.
I have some unit-tests (~200) for my simulator written in Fortran. I can run them manually and get the amount of passed/ not passed.

I'm trying to find a tool to evaluate the % of the code covered by my unit-test.

0 Kudos
1 Reply
Arjen_Markus
Valued Contributor III
122 Views

Have you looked at the "Tools/Intel Compiler/Code coverage..." menu item in Visual Studio? (Or alternatively searched the compiler documentation for "coverage") I do not know if this fits your situation, but at the very least you get insight in what parts of the code have indeed been run. I am not sure if it combines the coverage results for several test programs, but it is a start.

Reply