From the course: Programming Foundations: Test-Driven Development

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Where to start?

Where to start? - Java Tutorial

From the course: Programming Foundations: Test-Driven Development

Start my 1-month free trial

Where to start?

- TDD is about starting the incremental cycle of software development with a failing test case. But the question is, failing test of what? Can we start from anywhere in the list of requirements? Or are there some best practices to think about when making that decision? At the start of every iteration we decide which use cases or user stores are to be implemented. We then identify their acceptance criteria and then use the acceptance criteria to determine a good starting point. For example, let us say we have these three use cases in the hangman game. We will pick the 'Play next round' use case as our first use case. Because it has the core game logic while the other two are dependent on it. Now we elaborate this use cases by writing down its flow. Let us say this is the first draft of the first basic flow of Play next round use case. When we start a new round, the game saves a previous score if any, initializes its current score to zero and the remaining trials to say 10. It fetches…

Contents