TF002 Generate a PDF

Output requirements and tests in PDF format

Is a test for

Initial state

The expected state is the final state of TF001 Writing requirements as text

Procedure

Step 1

List the yamls files of the project inside a typst file

$ cat specification.typ
#import "@local/speky:0.0.7": speky
#speky(("spec.yaml",  "tests.yaml").map(yaml))

Step 2

Run Typst and open PDF

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

Step 3

Verify the requirements are found inside:

  • The unique ID and short summary as section title

  • The statement as a paragraph

Verify that:

  • the test T01 links to the requirement S01: “Is a test for S01 Lorem ipsum”

  • the requiremenmt S01 links to the test T01: “Tested by T01