Use case StRS-MDOKFSTUDIO-CORE-002
A writer composes a document from included files
Writers need to build a document from several files and still edit each file in its own place.
Use case diagram
How it is split
This use case (StRS) is reached by one path (the coloured line). A path goes from one situation (circle) to the next; each step (pill) is a behaviour (SwRS) with its own tests.
path 1: Show an included file in place other outcomeone dot = one scenario checked: nominal boundary refusal
Path 1: Show an included file in place
- A trusted document holds an include directiveSwRS-MDOKFSTUDIO-CORE-012 an unsupported include form stays an unresolved placeholderSwRS-MDOKFSTUDIO-CORE-013 an include outside the allowed root, or a cycle, is refusedSwRS-MDOKFSTUDIO-CORE-012 ยท 3 tests the preview renders the included Markdown file in place of the directive and maps every included block to the lines of the directive
- The included content is shown in place
This map has 11 different ways through it in 8 steps or fewer. Instead of testing each one end to end, the 2 behaviours on the map are tested one by one, with 15 scenarios.
Behaviours of this use case
SwRS-MDOKFSTUDIO-CORE-012An include is expanded in place and mapped to its directive 3 testsSwRS-MDOKFSTUDIO-CORE-013Includes are bounded by depth, budget, size and allowed roots 9 tests
SwRS-MDOKFSTUDIO-CORE-014Keep unsupported include forms as placeholders superseded superseded by SwRS-MDOKFSTUDIO-CORE-012 Markdown file
SwRS-MDOKFSTUDIO-CORE-015Map included blocks to the include directive superseded superseded by SwRS-MDOKFSTUDIO-CORE-012 Markdown file
SwRS-MDOKFSTUDIO-CORE-016Limit the include budget per render superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file
SwRS-MDOKFSTUDIO-CORE-017Read a repeated include once per render superseded superseded by SwRS-MDOKFSTUDIO-CORE-012 Markdown file
SwRS-MDOKFSTUDIO-CORE-018Refuse includes outside the allowed roots superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file
SwRS-MDOKFSTUDIO-CORE-019Warn about a missing included file superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file
SwRS-MDOKFSTUDIO-CORE-067Refuse oversize included files superseded superseded by SwRS-MDOKFSTUDIO-CORE-013 Markdown file