TF007 CSVs

Load requirements and comments from CSVs

Is a test for

Initial state

Blank project

Procedure

Step 1

Write a CSV file for requirements

$ cat spec.csv
id,short,long
S01,"Lorem ipsum","A requirement from CSV"

Step 2

Write a CSV file for comments

$ cat comments.csv
from,about,date,text
"Some Person",S01,"01/01/2025","A comment from CSV"

Step 3

Write a typst file importing the CSVs

$ cat dummy.typ
#import "@local/speky:0.0.7": speky, table_to_comments, table_to_requirements
#speky((table_to_requirements(csv("spec.csv"), "functional"),
        table_to_comments(csv("comments.csv"))))

Step 4

Generate the PDF

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

Step 5

Verify the requirement and comment appear properly