Markdown OKF-Schema Studio

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
SwRS-MDOKFSTUDIO-CORE-012: An include is expanded in place and mapped to its directiveSwRS-MDOKFSTUDIO-CORE-0123 teststhe preview renders the includedMarkdown file in place of thedirective and maps every includedblock to the lines of thedirectiveSwRS-MDOKFSTUDIO-CORE-012: An include is expanded in place and mapped to its directiveSwRS-MDOKFSTUDIO-CORE-0123 testsan unsupported include form stays an unresolved placeholderSwRS-MDOKFSTUDIO-CORE-013: Includes are bounded by depth, budget, size and allowed rootsSwRS-MDOKFSTUDIO-CORE-0139 testsan include outside the allowed root, or a cycle, is refusedA trusted document holds an include directiveA trusted document holdsan include directiveThe included content is shown in placeThe included content isshown 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