Trikalabs
  • Home
  • Best online TDD videos
  • Book Suggestions
  • About Me
  • Contact
Trikalabs
No Result
View All Result

What is TDD?

by fragi
May 13, 2021
in TDD
Share on FacebookShare on Twitter

TDD is an iterative software development process consisting of three steps:

  1. Red. Here we start by writing a failing test. It is essential to write a failing test first, because we can verify that the feature has not yet been implemented.
  2. Green. In this step, we aim to make the failing test pass with the simplest solution. It is crucial to keep the TDD cycle quick, so as not to lose tempo. Our aim is just to make it work.
  3. Refactor. In this step, we already have the functionality in our code. Given that we have added the functionality in the simplest way means the code is not in its best form. Therefore, we need to refactor the code by removing duplicated code, extracting functionality to utility methods, and adding any necessary abstractions. In general, doing any action that moves our codebase towards the appropriate design and to the code standards we have decided.
Tags: TDD
fragi

fragi

Related Posts

What is TDD?
TDD

XCTestCase lifecycle

May 25, 2021

XCTestCase has many methods as part of its lifecycle. It has a class setup method that executes only once before...

What is TDD?
TDD

Make your tests more readable

May 23, 2021

In the FizzBuzz code challenge, we had to write the following test method: Although the test is easy to...

What is TDD?
TDD

@testable

May 16, 2021

At the beginning of the FizzBuzz code challenge , we deleted the @testable line of code. What does this @testable...

What is TDD?
TDD

What is SUT

May 16, 2021

In many articles about TDD, you will find the term SUT, which refers to the System Under Test. Using SUT...

What is TDD?
TDD

Why unit testing is valuable

May 16, 2021

There are many benefits of writing unit tests. The test we write can serve as a documentation of what the...

What is TDD?
TDD

Cyclomatic complexity

November 11, 2021

According to Wikipedia (https://en.wikipedia.org/wiki/Cyclomatic_complexity): Cyclomatic complexity is a software metric used to indicate the complexity of a program. It is...

Next Post
What is TDD?

FizzBuzz Kata - step by step TDD

What is TDD?

Easier navigation through test methods

What is TDD?

Cyclomatic complexity

  • Advertise
  • Privacy & Policy
  • Contact

© 2019 Trikalabs Ltd. All rights reserved.

No Result
View All Result
  • Home
  • About Me
  • A curated list with the best free online TDD videos
  • Book Suggestions
  • Pinner Code Club

© 2019 Trikalabs Ltd. All rights reserved.