Markdown OKF-Schema Studio

Behaviour SwRS-MDOKFSTUDIO-CORE-084

The site requirements viewer has a search index

When a maintainer builds the Pages site, the build SHALL write a search index of the areas, use cases, behaviours and files, with the retired requirements flagged so the page shows them only when History is on.

Another outcome at step 2 of path 1 in StRS-MDOKFSTUDIO-CORE-008, in the state “The reviewer picks an area”.

Scenarios 2

The situations the tests check; open one to read it.

nominalIndex entries
Givena report with an area, a use case, a behaviour and a retired behaviour
Whenthe site is built
Thenrequirements/search-index.js holds one entry for each of them and one per file, a file entry giving the count of behaviours that carry it, the retired entry is flagged, and the entry of a use case or a behaviour carries the full ID of the requirement, shown in its result line
boundaryNo report
Givenno requirements report
Whenthe site is built
Thenthe index is empty and the build does not fail

Implemented in 1

Tested by 3