Skip to content

Commit f57f7db

Browse files
committed
d documentation
1 parent 184fbd2 commit f57f7db

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

approvaltests-tests/src/test/java/org/approvaltests/StoryBoardTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

approvaltests/docs/Features.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

todo.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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

0 commit comments

Comments
 (0)