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:

  1. each requirement has 2 tags

  2. The tag index has two sections:

  • Foo

  • Lorem

  1. The Foo section has two subsections:

  • Bar, where S01 is listed

  • Baz, where S02 is listed

  1. S02 is listed directly inside the Lorem section

  2. S01 is listed inside the Ipsum subsection of Lorem