StrictDoc Documentation
tests/integration/features/source_code_traceability/_file_types/65_st_structured_text/test.itest
Source file coverage
Path:
tests/integration/features/source_code_traceability/_file_types/65_st_structured_text/test.itest
Lines:
25
Non-empty lines:
20
Non-empty lines covered with requirements:
20 / 20 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# This test verifies that the Structured Text (PLCs) format is properly recognized
3
# by StrictDoc.
4
#
5
# @relation(SDOC-SRS-142, scope=file)
6
#
7
 
8
RUN: %strictdoc export %S --output-dir %T | filecheck %s --dump-input=fail
9
CHECK: Export completed.
10
 
11
RUN: %check_exists --file "%T/html/_source_files/file.st.html"
12
 
13
RUN: %cat %T/html/%THIS_TEST_FOLDER/example.html | filecheck %s --dump-input=fail --check-prefix CHECK-HTML
14
CHECK-HTML: <a{{.*}}href="../_source_files/file.st.html#REQ-001#1#17">
15
CHECK-HTML: <a{{.*}}href="../_source_files/file.st.html#REQ-001#11#17">
16
 
17
RUN: %cat %T/html/_source_files/file.st.html | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE-FILE
18
 
19
# Verify that the Text lexer is selected for this file as Pygments does not
20
# support the ST syntax at the moment.
21
CHECK-SOURCE-FILE: /* Lexer: Text only */
22
# Verify that the link that points back to requirement is displayed correctly.
23
CHECK-SOURCE-FILE: href="../65_st_structured_text/example.html#REQ-001"
24
# Verify that the range link is displayed correctly.
25
CHECK-SOURCE-FILE: href="../_source_files/file.st.html#REQ-001#11#17"