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 requirements.yaml for it to become:

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

Step 3

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

Step 4

Verify both RF01 and RF02 are listed