read_spec_yaml.Rd
Convert a set of stories and optionally requirements from YAML files into a
data frame that is ready to be passed as the specs
argument to
mrgvalidate::create_package_docs()
.
read_spec_yaml(stories, requirements = NULL)
Character vector of YAML files to read stories and requirements from.
Tibble with columns as described by mrgvalidate::input_formats
.
If you provide a value for both stories
and requirements
, the stories
argument should be one or more YAML files with the following structure:
-ID-001:
STORY: Story name
name: >
description
Longer story description:
requirements- REQ-ID-001
- REQ-ID-002
: risk
ProductRisk-ID-002:
STORY [...]
The requirements
argument should be a set of YAML files that have entries
that link those requirements to tests:
-ID-001:
REQ: >
description
Description:
tests- TEST-ID-001
- TEST-ID-001
The information above is used to construct a data frame with the following columns:
StoryId
(character scalar)
StoryName
(character scalar)
StoryDescription
(character scalar)
ProductRisk
(character scalar)
RequirementIds
(character vector)
RequirementDescription
(character scalar)
TestIds
(character vector)
If you provide only a stories
argument, the YAML entries should specify a
list of tests rather than a set of requirements:
-ID-001:
STORY: Story name
name: >
description
Longer story description:
tests- TEST-ID-001
- TEST-ID-002
: risk
ProductRisk-ID-002:
STORY [...]
Those entries are used to construct a data frame with the following columns:
StoryId
(character scalar)
StoryName
(character scalar)
StoryDescription
(character scalar)
ProductRisk
(character scalar)
TestIds
(character vector)