StrictDoc Documentation
tests/integration/features/diff/--generate-diff/03_tags/test.itest
Source file coverage
Path:
tests/integration/features/diff/--generate-diff/03_tags/test.itest
Lines:
43
Non-empty lines:
36
Non-empty lines covered with requirements:
36 / 36 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
#
2
# @relation(SDOC-SRS-111, scope=file)
3
#
4
 
5
RUN: cp %S/strictdoc_config.py %T/
6
RUN: git init
7
RUN: git config user.name "Your Name"
8
RUN: git config user.email "you@example.com"
9
RUN: git config user.email "you@example.com"
10
RUN: cp %S/lhs/input.sdoc %T/
11
RUN: git add .
12
RUN: git commit -m "Test commit #1"
13
RUN: git tag v1.0.0
14
RUN: git tag v1.0.0-beta
15
RUN: cp %S/rhs/input.sdoc %T/
16
RUN: git add .
17
RUN: git commit -m "Test commit #2"
18
RUN: git tag v2.0.0
19
RUN: git tag release-2.0.0
20
RUN: %strictdoc export %T --generate-diff-git "v1.0.0..v2.0.0" --output-dir %T/output
21
RUN: cat %T/output/html/changelog.html | filecheck %s
22
 
23
CHECK: Compared revisions
24
CHECK: v1.0.0 (
25
CHECK: Left tags
26
CHECK: v1.0.0, v1.0.0-beta
27
CHECK: v2.0.0 (
28
CHECK: Right tags
29
CHECK: release-2.0.0, v2.0.0
30
 
31
CHECK-NOT: form-submit-action
32
 
33
RUN: cat %T/output/html/changelog.html | filecheck %s --check-prefix DISABLED
34
 
35
DISABLED: id="left_revision"
36
DISABLED: disabled
37
DISABLED: id="right_revision"
38
DISABLED: disabled
39
 
40
RUN: cat %T/output/html/changelog.html | filecheck %s --check-prefix FIELD
41
 
42
FIELD: value="v1.0.0 ({{.*}}) [tags: v1.0.0, v1.0.0-beta]"
43
FIELD: value="v2.0.0 ({{.*}}) [tags: release-2.0.0, v2.0.0]"