Behaviour SwRS-MDOKFSTUDIO-CORE-069
The site Requirements home shows the requirements chain and the report figures
When a maintainer builds the Pages site, the build SHALL write the Requirements home at requirements/ that draws the chain from use case to test and shows the figures of active requirements from the okfreq report, or states that the report was not generated when it is missing or unreadable, without failing the build, and SHALL keep requirements.html as a redirect to it.
Step 1 of path 1 in StRS-MDOKFSTUDIO-CORE-008: from “The reviewer opens the site” to “The reviewer picks an area”.
Scenarios 4
The situations the tests check; open one to read it.
nominalReport present
Givena report with 3 active SwRS (2 need markers, 1 is exempt, only 1 of the 2 has a source marker) and 2 retired SwRS, whose lifecycle is written in req_lifecycle
Whenthe site is built
Thenrequirements/ shows the three layers and the areas, explains what the requirements are and why they are kept, holds the chain diagram with the marker comments of one real requirement read from its source and test files, and the CI checks that keep them in sync, shows 50% of the 2 marker targets implemented and 100% tested, counts the retired SwRS apart under "Retired requirements", and the Requirements link of every page of the site points to requirements/
nominalOld address
Givena site built from any report
Whena reader opens requirements.html
Thenthe page redirects to requirements/ with a meta refresh and holds a link and a canonical link to it
refusalReport missing or unreadable
Givenno report file, or a file that is not a requirements report
Whenthe site is built
Thenthe build still succeeds and requirements/ holds the diagram and the text "The requirements report was not generated", with no figures and no area page; a marker file that cannot be read shows its path only
boundaryNothing to measure
Givena report with no SwRS that needs markers
Whenthe page is rendered
Thenthe coverage figures read "n/a" instead of a percentage
Implemented in 1
Tested by 3
Known limits (1)
- the page counts a lifecycle other than superseded, deprecated and archived as