Skip to content

Commit a19b3f0

Browse files
committed
Add initial blurb about Gherkin tests
1 parent b91ef7e commit a19b3f0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,30 @@ There are some interesting features to be aware of:
135135

136136
</details>
137137

138+
139+
140+
<details>
141+
142+
<summary>Gherkin (Cucumber) tests</summary>
143+
144+
Now, if you're not familiar with it, [Gherkin](https://www.guru99.com/gherkin-test-cucumber.html)
145+
is a format that allows you to specify the behaviour of your application in a way that it can
146+
be read by normal humans. You may have encountered it by using [Cucumber](https://cucumber.io/).
147+
I've found it a very powerful way of validating the behaviour of Buffalo app and other projects,
148+
even CLI tools.
149+
150+
Why I specifically like these tests is that it forces you to think about the behaviour or your
151+
application from a user's point of view and driving tests using a seperate runtime allows you
152+
to test the entire built application as it will be delivered in to Production. With Buffalo
153+
unit tests, you're still really reaching in to the application to test things in a way that
154+
isn't quite the same as it's really used.
155+
156+
## Important files
157+
158+
* ...
159+
160+
## What's happening
161+
162+
...
163+
164+
</details>

0 commit comments

Comments
 (0)