Move daily emails into the blog page
This commit is contained in:
parent
be69398931
commit
1b8441608f
828 changed files with 9 additions and 196 deletions
19
source/_posts/2023-05-05.md
Normal file
19
source/_posts/2023-05-05.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
title: >
|
||||
Getting to green
|
||||
pubDate: 2023-05-05
|
||||
permalink: >-
|
||||
daily/2023/05/05/getting-to-green
|
||||
tags:
|
||||
- automated-testing
|
||||
- testing
|
||||
- test-driven development
|
||||
---
|
||||
|
||||
When doing test-driven development, once you've written a failing (a.k.a. red) test, the main objective is to get to a green (a.k.a. passing) test as quickly as possible via the simplest method.
|
||||
|
||||
Even if that means returning a hard-coded value.
|
||||
|
||||
Once the test passes, it or the code it's testing can be refactored.
|
||||
|
||||
Or you can move on to the next test and, if you need to change the hard-coded value to get both tests to pass, then it is the right time to do so.
|
Loading…
Add table
Add a link
Reference in a new issue