Return to site

๐Ÿฅ’โ˜• CUCUMBER or BDD with Java

October 22, 2022

I just finished a course on Behavior Driven Development with Cucumber.

๐Ÿ‘ฉ ๐Ÿซ Behavior-driven development (BDD) is an Agile software development methodology in which an application is documented and designed around the behavior a user expects to experience when interacting with it.

So concretely, in my code, I have gherkin statements that explain the test in plain English, then it is mapped in Java code.

Gherkin๐Ÿ‘‡

Java step definitions (that mapped this gherkin above)๐Ÿ‘‡

In the end, we got a little story ๐Ÿ“– in English that anybody can understand (completely agnostic of programming๐Ÿ‘จ ๐Ÿ’ปโŒ) with the three words: Given/When/Then.

Happy (agile) coding! ๐Ÿ™‚

Check below a POC on my GitHub doing a BDD for a GET๐Ÿ‘‡