TF007 CSVs¶
Load requirements from YAML and comments from a CSV
Is a test for
Source
Source file: specs/tests/csv.yaml
Loaded from: speky
Initial state¶
Blank project
Procedure¶
Step 1¶
Write a YAML file for requirements
$ cat requirements.yaml
kind: requirements
category: functional
requirements:
- id: RF01
long: A requirement
Step 2¶
Write a CSV file for comments
$ cat comments.csv
from,about,date,text
"Some Person",RF01,"01/01/2025","A comment from CSV"
Step 3¶
Write a typst file importing them
$ cat dummy.typ
#import "@local/speky:0.3.0": speky, table_to_comments
#speky((yaml("requirements.yaml"),
table_to_comments(csv("comments.csv"))))
Step 4¶
Generate the PDF
$ typst compile dummy.typ --open
Step 5¶
Verify the requirement and comment appear properly