Path:
tests/integration/features/source_code_traceability/_general/70_link_from_section_to_file/test.itest
Lines:
24
Non-empty lines:
18
Non-empty lines covered with requirements:
18 / 18 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# This test verifies that a source file can be linked to a [[SECTION]] element.
3
#
4
# @relation(SDOC-SRS-33, scope=file)
5
#
6
7
RUN: %strictdoc export %S --output-dir %T | filecheck %s
8
CHECK: Export completed.
9
10
RUN: %check_exists --file "%T/html/_source_files/file.py.html"
11
12
RUN: %cat %T/html/%THIS_TEST_FOLDER/input.html | filecheck %s --check-prefix CHECK-HTML
13
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#SECT-1#1#6">14
15
RUN: %cat %T/html/_source_files/file.py.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
16
17
# Left/aside panel: The requirement cell has a link that correctly points to the document file.
18
CHECK-SOURCE-FILE: href="../70_link_from_section_to_file/input.html#SECT-1"
19
CHECK-SOURCE-FILE: ../_source_files/file.py.html#SECT-1#1#6
20
21
# Central panel.
22
CHECK-SOURCE-FILE: "../_source_files/file.py.html##1#6"
23
CHECK-SOURCE-FILE: 1 - 6 | entire file
24
CHECK-SOURCE-FILE: hello world{{.*}}# noqa: T201