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 requirements.yaml
kind: requirements
category: functional
requirements:
- id: RF01
  long: The first requirement
  tags:
    - foo:bar
    - lorem:ipsum
- id: RF02
  short: Second
  long: The second requirement
  tags:
    - foo:baz
    - lorem

Step 2

Regenerate the PDF

$ typst compile specification.typ --open

Step 3

Verify that:

  1. each requirement has 2 tags

  2. The tag index has two sections:

  • Foo

  • Lorem

  1. The Foo section has two subsections:

  • Bar, where RF01 is listed

  • Baz, where RF02 is listed

  1. RF02 is listed directly inside the Lorem section

  2. RF01 is listed inside the Ipsum subsection of Lorem