Path:
tests/integration/features/source_code_traceability/_file_types/66_st_structured_text_user_report/test.itest
Lines:
31
Non-empty lines:
26
Non-empty lines covered with requirements:
26 / 26 (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. In addition, based on a user report, this test verifies that the
4
# markers with mixed slashes and underscored are recognized correctly, e.g., SF_REQ-001.
5
#
6
# Original issue: https://github.com/strictdoc-project/strictdoc/discussions/2568.
7
#
8
# @relation(SDOC-SRS-142, scope=file)
9
#
10
11
RUN: %strictdoc export %S --output-dir %T | filecheck %s --dump-input=fail
12
CHECK: Export completed.
13
14
RUN: %check_exists --file "%T/html/_source_files/file.st.html"
15
16
RUN: %cat %T/html/%THIS_TEST_FOLDER/example.html | filecheck %s --dump-input=fail --check-prefix CHECK-HTML
17
CHECK-HTML: <a{{.*}}href="../_source_files/file.st.html#REQ-001#1#18">18
CHECK-HTML: <a{{.*}}href="../_source_files/file.st.html#REQ-002#12#18">19
CHECK-HTML: <a{{.*}}href="../_source_files/file.st.html#REQ-003#2#4">20
CHECK-HTML: <a{{.*}}href="../_source_files/file.st.html#SF_REQ-001#1#18">21
22
RUN: %cat %T/html/_source_files/file.st.html | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE-FILE
23
24
# Verify that the Text lexer is selected for this file as Pygments does not
25
# support the ST syntax at the moment.
26
CHECK-SOURCE-FILE: /* Lexer: Text only */
27
# Verify that the link that points back to requirement is displayed correctly.
28
CHECK-SOURCE-FILE: href="../66_st_structured_text_user_report/example.html#REQ-001"
29
# Verify that the range link is displayed correctly.
30
CHECK-SOURCE-FILE: href="../_source_files/file.st.html#REQ-001#1#18"
31
CHECK-SOURCE-FILE: href="../_source_files/file.st.html#SF_REQ-001#1#18"