Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

GCOV is a tool you can use in conjunction with GCC to test code coverage in your programs.

...

Build

For building with coverage support you need to add some flags to gcc/g++ compiler and linker:

...

As a result, you will have a .gcno file for each compiled .o file in your object directory.

...

Execute

The execution is the same as always, you don't need to use a wrapper application or pass any special flag or environment variable. You can either run an executable manually or use an automated testing system such as TAT.

...