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.1.2": speky
#speky(("requirements.yaml",  "tests.yaml").map(yaml))

Step 2

Run Typst and open PDF

$ typst compile specification.typ --open

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 RF01: “Is a test for RF01

  • the requirement RF01 links to the test T01: “Tested by T01

  • the test T02 links to the requirement RF02: “Is a test for RF02 Second”

  • the requirement RF02 links to the test T02: “Tested by T02 Second test”