Return to site

🥒☕ CUCUMBER or BDD with Java

· java,testing,cucumber

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👇