...

/

Testing the Pomodoro Functionality

Testing the Pomodoro Functionality

Learn how to write test cases for the Pomodoro business logic.

Now that we have both implementations for the Pomodoro business logic and the in-memory repository, let’s write some tests for the business logic.

For brevity, we’ll only add tests for the business logic, which will indirectly test the repository when it’s used. For a real production application, we recommend that we write unit tests for the repository implementation as well.

Access this course and 1400+ top-rated courses and projects.