StrictDoc Documentation
tests/integration/features/source_code_traceability/_RELATION_FIELD/test.itest
Source file coverage
Path:
tests/integration/features/source_code_traceability/_RELATION_FIELD/test.itest
Lines:
19
Non-empty lines:
14
Non-empty lines covered with requirements:
14 / 14 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
# @relation(SDOC-SRS-147, SDOC-SRS-137, scope=file)
2
 
3
RUN: %strictdoc --debug export %S --output-dir %T | filecheck %s --dump-input=fail
4
CHECK: Published: Hello world doc
5
 
6
RUN: %check_exists --file "%T/html/_source_files/file.py.html"
7
 
8
RUN: %cat %T/html/%THIS_TEST_FOLDER/input.html | filecheck %s --check-prefix CHECK-HTML
9
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-1#1#13">
10
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-1#7#9">
11
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-1#11#13">
12
 
13
RUN: %cat %T/html/_source_files/file.py.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
14
CHECK-SOURCE-FILE: 1 - 13 | function hello_world()
15
CHECK-SOURCE-FILE: 7 - 9 | range
16
CHECK-SOURCE-FILE: 11 - 13 | range
17
 
18
RUN: %cat %T/html/source_coverage.html | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE-COVERAGE
19
CHECK-SOURCE-COVERAGE: 85.7