Path:
tests/integration/features/code_coverage_gcov/01_basic_gcov/test.itest
Lines:
17
Non-empty lines:
13
Non-empty lines covered with requirements:
13 / 13 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# @relation(SDOC-SRS-144, scope=file)
3
#
4
5
RUN: cd %T && gcc --coverage -g -O0 -o main %S/src/main.c
6
7
RUN: cd %T && ./main | filecheck %s --check-prefix CHECK-C
8
CHECK-C: This function is covered
9
10
RUN: cd %T && gcovr --object-directory ./ --root %S --html --html-details -o coverage.html
11
RUN: cd %T && gcovr --object-directory ./ --root %S --json --json-pretty -o coverage.gcov.json
12
RUN: cd %T && mkdir docs/ && cp coverage.gcov.json docs/
13
RUN: cp %S/strictdoc_config.py %T/docs/
14
RUN: cp -r %S/src %T/docs/
15
RUN: cd %T/docs && %strictdoc export . | filecheck %s
16
17
CHECK: Published: Code coverage report