TF011
Parameterizing tags¶
We can group tags
Is a test for
Initial state¶
The expected state is the final state of
TF002
Generate a PDF
Procedure¶
Step 1¶
Add paramterized tags to requirements
$ cat specs.yaml
kind: requirements
category: functional
requirements:
- id: S01
long: The first requirement
short: Lorem ipsum
tags:
- foo:bar
- lorem:ipsum
- id: S02
long: The second requirement
tags:
- foo:baz
- lorem
Step 2¶
Regenerate the PDF
$ typst compile specification.typ --open
Step 3¶
Verify that:
each requirement has 2 tags
The tag index has two sections:
Foo
Lorem
The Foo section has two subsections:
Bar, where
S01
is listedBaz, where
S02
is listed
S02
is listed directly inside the Lorem sectionS01
is listed inside the Ipsum subsection of Lorem