Test Driven Development
or TDD
is something I was hearing a lot but didn’t fully understand.
This little project is my way of exploring and learning it’s fundamentals.
StringCalculatorTDD is a project created for TDD beginners as a solution for TDD Kata 1 - String Calculator.
Before you begin, ensure you have met the following requirements:
java, testng, maven
To explore StringCalculatorTDD, follow these steps:
git clone https://github.com/2kabhishek/StringCalculatorTDD
cd StringCalculatorTDD
code . # Or any other of your favorite editor
After cloning the project one good way to learn from it would be using git history.
Just do a git log
and look at the changes, you can go through the entire process of TDD one step at a time.
StringCalculatorTDD was built using Java
and TestNG
, the IDE used was Eclipse
.
Wrapping my head around the laws of TDD, which are:
I learned why TDD is used and how it helps us in producing, bug free maintainable code.
The cycle of TDD is somewhat as such:
I also learned about TestNG, which is a more feature rich equivalent of JUnit.
Probably use TDD in more of my future projects.
Hit the :star: button if you found this useful.