daily-email: add 2023-08-26
Work in small chunks
This commit is contained in:
parent
a57442a67e
commit
2f2dcd1ee0
20
src/content/daily-email/2023-08-26.md
Normal file
20
src/content/daily-email/2023-08-26.md
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
title: >
|
||||||
|
Work in small chunks
|
||||||
|
pubDate: 2023-08-26
|
||||||
|
permalink: >
|
||||||
|
archive/2023/08/26/work-in-small-chunks
|
||||||
|
tags:
|
||||||
|
- automated-testing
|
||||||
|
- test-driven-development
|
||||||
|
---
|
||||||
|
|
||||||
|
When working with teams who are starting with automated tests and test-driven development, a common issue is being stuck on a failing test and trying to do too much at once while getting it to pass.
|
||||||
|
|
||||||
|
Instead, work in small bite-sized iterations and focus on getting the test to pass as quickly as possible.
|
||||||
|
|
||||||
|
You don't want to be stuck in a failing state for longer than you need to.
|
||||||
|
|
||||||
|
Run the tests often, write the simplest code possible and don't write any code that isn't driven by a failing test.
|
||||||
|
|
||||||
|
Don't make too many changes at once so, if you do get stuck, you can reset to the last working test and start again.
|
Loading…
Reference in a new issue