StrictDoc Documentation
tests/integration/features/source_code_traceability/_language_parsers/python/05_python_class/test.itest
Source file coverage
Path:
tests/integration/features/source_code_traceability/_language_parsers/python/05_python_class/test.itest
Lines:
22
Non-empty lines:
16
Non-empty lines covered with requirements:
16 / 16 (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 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#9">
10
CHECK-HTML: <a{{.*}}href="../_source_files/file.py.html#REQ-2#1#9">
11
 
12
RUN: %cat %T/html/_source_files/file.py.html | filecheck %s --check-prefix CHECK-SOURCE-FILE
13
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-1#1#9"
14
CHECK-SOURCE-FILE: <b>[ 1-9 ]</b>
15
CHECK-SOURCE-FILE: file.py, class Foo
16
 
17
CHECK-SOURCE-FILE: href="../_source_files/file.py.html#REQ-2#1#9"
18
CHECK-SOURCE-FILE: <b>[ 1-9 ]</b>
19
CHECK-SOURCE-FILE: file.py, class Foo
20
 
21
RUN: %cat %T/html/source_coverage.html | filecheck %s --check-prefix CHECK-SOURCE-COVERAGE
22
CHECK-SOURCE-COVERAGE: 80.0