Behaviour SwRS-MDOKFSTUDIO-CORE-090
The requirements lint parses every use case diagram
When a maintainer runs the requirements lint, it SHALL parse the Mermaid fence of the Use case diagram section of every StRS with the project's Mermaid, using the same section and fence as the site, and SHALL fail naming the file, the line, the StRS id and Mermaid's message for each fence that does not parse.
Part of StRS-MDOKFSTUDIO-TRUST-014.
Scenarios 3
The situations the tests check; open one to read it.
nominalEvery diagram parses
Givena requirements bundle whose StRS use case diagrams all parse with the project's Mermaid
Whenthe maintainer runs the requirements lint
Thenthe lint passes and prints `use case diagrams: <n> StRS checked, all parse (Mermaid <version>)`, where `<n>` counts the StRS that have a diagram
boundaryNo diagram
Givena StRS with no `### Use case diagram` section, a section with no Mermaid fence, or an empty fence
Whenthe maintainer runs the requirements lint
Thenthat StRS is not counted and no error is reported for it
refusalA fence that does not parse
Givenone or more StRS whose Mermaid fence does not parse, for example a `sequenceDiagram` with a participant `Box` used in a message, or a `stateDiagram-v2` with a state named `state`
Whenthe maintainer runs the requirements lint
Theneach is reported as `<path>:<line>: <StRS id>: the use case diagram does not parse` followed by Mermaid's message, and the lint fails (exit 1)