File tree Expand file tree Collapse file tree 4 files changed +34
-1
lines changed
approvaltests-tests/src/test/java/org/approvaltests Expand file tree Collapse file tree 4 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,11 @@ void gameOfLife()
1818 gameOfLife = new GameOfLife ((x , y ) -> y == 2 && 1 <= x && x <= 3 );
1919 Approvals .verify (StoryBoard .createSequence (gameOfLife , 3 , gameOfLife ::advance ));
2020 gameOfLife = new GameOfLife ((x , y ) -> y == 2 && 1 <= x && x <= 3 );
21+ // begin-snippet: StoryBoardExample
2122 Approvals .verify (new StoryBoard ().add (gameOfLife ).addFrames (3 , gameOfLife ::advance ));
23+ // end-snippet
2224 }
23- private class GameOfLife
25+ private static class GameOfLife
2426 {
2527 private Function2 <Integer , Integer , Boolean > board ;
2628 public GameOfLife (Function2 <Integer , Integer , Boolean > board )
Original file line number Diff line number Diff line change 2929 * [ Usage] ( #usage ) <!-- endToc -->
3030
3131## x.y.z
32+
33+ ## 11.7.0
34+ ### StoryBoard
35+ [ see here] ( reference/StoryBoard.md#top )
36+
37+ ## 10.4.0
3238### Configure tests to only run on specific machine
3339[ see here] ( how_to/MachineNameSpecificTest.md#top )
3440
Original file line number Diff line number Diff line change 1+ <a id =" top " ></a >
2+
3+ # StoryBoard
4+
5+ <!-- toc -->
6+
7+ ## Contents
8+
9+ * [ Paintables] ( #paintables )
10+ * [ Why] ( #why )
11+ * [ How To] ( #how-to )
12+ * [ create an animated gif] ( #create-an-animated-gif ) <!-- endToc -->
13+
14+ ## How to verify sequences
15+
16+ StoryBoards can be very helpful to tell a story of steps that happen over time.
17+ Here is a simple example
18+
19+ snippet: StoryBoardExample
20+
21+ which produces
22+
23+ snippet: StoryBoardTest.gameOfLife.approved.txt
Original file line number Diff line number Diff line change 11
2+ * Continue to evolve StoryBoard
3+
24* Approvals.options.forName.asMachineNameSpecificTest().onlyForEnvironments("Larss-Air.lan", "macbook13").run(this::extracted);
35* better default FrontloadedReporter to handle CI
46+ docs for graph for ci consistent
You can’t perform that action at this time.
0 commit comments