This project is a simple student exercise demonstrating the use of TDD (Test-Driven Development)
and BDD (Behavior-Driven Development) through a classic example: FizzBuzz.
The implementation uses:
- Java 21
- Cucumber (BDD)
- JUnit 4
- GitHub Actions CI
- TDD Cycle: Red → Green → Blue
The project starts by defining behavior in Gherkin, generating failing tests (Red), implementing minimal solutions ( Green), and finishing with refactoring (Blue).
- Multiples of 3 →
"Fizz" - Multiples of 5 →
"Buzz" - Multiples of 15 →
"FizzBuzz" - Otherwise, → return the number as a string
All behaviors are fully covered by Gherkin scenarios (fizz_buzz.feature).
Zhenghan PEI
This repository serves as:
- A hands-on example of TDD workflow
- A demonstration of BDD using Cucumber
- A minimal, easy-to-understand template for students learning automated testing