# `TF004` Add comments Write a comment file to add comments to requirements :::{dropdown} Is a test for :open: :icon: check-circle-fill :color: primary [`SF006` Support comments](/requirements/SF006) ::: ## Initial state The expected state is the final state of [`TF002` Generate a PDF](/tests/TF002) ## Procedure ### Step 1 Create a comment file ```console $ cat comments.yaml ``` ```yaml kind: comments comments: - about: S01 from: Some Person date: 01/01/2025 text: The first comment ``` ### Step 2 Add it to the typst source ```console $ cat specification.typ ``` ```typst #import "@local/speky:0.0.7": speky #speky(("spec.yaml", "tests.yaml", "comments.yaml").map(yaml)) ``` ### Step 3 Regenerate the PDF and open it ```console $ typst compile specification.typ && open specification.typ ``` ### Step 4 Verify the comment appears in requirement `S01`, in the "Comments" subsection. ## Comments :::{card} User :text-align: left Can I leave comments on tests too ::: :::{card} Antoine :text-align: right Yes :::