StrictDoc Documentation
tests/integration/features/commands/new/01_create_initial_project/test.itest
Source file coverage
Path:
tests/integration/features/commands/new/01_create_initial_project/test.itest
Lines:
46
Non-empty lines:
39
Non-empty lines covered with requirements:
39 / 39 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# @relation(SDOC-LLR-208, scope=file)
3
#
4
 
5
RUN: %strictdoc new %T/project | filecheck %s --dump-input=fail
6
CHECK: StrictDoc project skeleton created
7
CHECK: Next steps:
8
CHECK: strictdoc export .
9
CHECK: strictdoc server .
10
 
11
RUN: %check_exists --dir "%T/project/docs"
12
RUN: %check_exists --file "%T/project/docs/high_level_requirements.sdoc"
13
RUN: %check_exists --file "%T/project/docs/low_level_requirements.sdoc"
14
RUN: %check_exists --dir "%T/project/src"
15
RUN: %check_exists --file "%T/project/src/main.c"
16
RUN: %check_exists --file "%T/project/strictdoc_config.py"
17
 
18
RUN: %cat %T/project/docs/high_level_requirements.sdoc | filecheck %s --dump-input=fail --check-prefix CHECK-HLR
19
CHECK-HLR: MID: {{[a-f0-9]{32}}}
20
CHECK-HLR: PREFIX: HLR-
21
CHECK-HLR: OPTIONS:
22
CHECK-HLR: ENABLE_MID: True
23
CHECK-HLR: MID: {{[a-f0-9]{32}}}
24
CHECK-HLR: UID: HLR-1
25
 
26
RUN: %cat %T/project/docs/low_level_requirements.sdoc | filecheck %s --dump-input=fail --check-prefix CHECK-LLR
27
CHECK-LLR: MID: {{[a-f0-9]{32}}}
28
CHECK-LLR: PREFIX: LLR-
29
CHECK-LLR: OPTIONS:
30
CHECK-LLR: ENABLE_MID: True
31
CHECK-LLR: MID: {{[a-f0-9]{32}}}
32
CHECK-LLR: UID: LLR-1
33
CHECK-LLR: - TYPE: Parent
34
CHECK-LLR: VALUE: HLR-1
35
 
36
RUN: %cat %T/project/src/main.c | filecheck %s --dump-input=fail --check-prefix CHECK-SOURCE
37
CHECK-SOURCE: {{@}}relation(LLR-1, scope=file)
38
 
39
RUN: %strictdoc export %T/project --output-dir %T/output --no-parallelization | filecheck %s --dump-input=fail --check-prefix CHECK-EXPORT
40
CHECK-EXPORT: Published: High-Level Requirements
41
CHECK-EXPORT: Published: Low-Level Requirements
42
 
43
RUN: %check_exists --file "%T/output/html/_source_files/src/main.c.html"
44
RUN: %cat %T/output/html/project/docs/low_level_requirements.html | filecheck %s --dump-input=fail --check-prefix CHECK-HTML
45
CHECK-HTML: class="requirement__link-parent" href="{{.*}}#HLR-1"
46
CHECK-HTML: href="{{.*}}_source_files/src/main.c.html#LLR-1#1#10"