Bundle BDD functions
Technical details
Items passed to bundle()
are sorted and re-packaged in a list, them passed
to glue::collapse()
with sep
set to \n
(for newline).
Examples
bundle(
feature(
title = "Visualization",
as_a = "user",
i_want = "to see the changes in the plot",
so_that = "I can visualize the impact of my customizations"
),
background(
title = "Launching the application",
given = "I have launched the application",
and = "it contains movie review data from IMDB and Rotten Tomatoes"
),
scenario(
title = "Viewing the Data Visualization",
given = "I have launched the application",
when = "I interact with the sidebar controls",
then = "the graph should update with the selected options"
)
)
#> Feature: Visualization
#> As a user
#> I want to see the changes in the plot
#> So that I can visualize the impact of my customizations
#> Background: Launching the application
#> Given I have launched the application
#> And it contains movie review data from IMDB and Rotten Tomatoes
#> Scenario: Viewing the Data Visualization
#> Given I have launched the application
#> When I interact with the sidebar controls
#> Then the graph should update with the selected options