#BDD

18 tweets

Pretty happy today with my #BDD setup, where I can document the contract for a
third party API in the same feature file that describes the effect of using it.

The calls to the 3rd party are mocked, everything else run on a real instance.

Replying to @coderbyheart

This is a great example of why I like #BDD #e2e tests and how they support
refactoring: the only thing that changed (while refactoring the entire data
storage solution) was the query language part, the result, and tested scenarios
stayed the same.
Embedded Photo

Given a log output (from a test run on real hardware), I want to express
assertions against these logs. Are there any existing test frameworks that use
that approach? It's like #BDD testing, but without any interaction (the firmware
can be configured to behave in a certain way).
/status/1314316412249350151

Currently writing a custom Gherkin runner which runs our integration tests and
nicely shows interpolated steps, can skip if stuff fails, etc. #bdd
Embedded Photo

Writing #BDD tests in Gherkin sounds strange to you? Give it a try!

Yes, the underlying implementation that needs to be build will blow your mind.
You need to handle state between and map a linear model of test execution to
something which used to be hierarchical.