TF005 Tags

Adding a tag to a requirements adds this requirement to the list of that tag.

Is a test for

Initial state

The expected state is the final state of TF002 Generate a PDF

Procedure

Step 1

Add tags to requirements: edit spec.yaml for it to become:

$ cat spec.yaml
kind: requirements
category: functional
requirements:
- id: S01
  short: Lorem ipsum
  long: The first requirement
  tags:
    - foo
    - bar
- id: S02
  long: The second requirement
  tags: [bar, baz]

Step 2

Regenerate the PDF and verify the tags index is present and listing the right requirements

$ typst compile specification.typ && open specification.pdf

Step 3

In the S01 section, click on the bar label to jump to the list of Bar

Step 4

Verify both S01 and S02 are listed