daily-email: add 2023-06-26
Is any code without tests legacy code?
This commit is contained in:
parent
adddc8ddc0
commit
7914911db5
17
src/content/daily-email/2023-06-26.md
Normal file
17
src/content/daily-email/2023-06-26.md
Normal file
|
@ -0,0 +1,17 @@
|
|||
---
|
||||
title: >
|
||||
Is any code without tests legacy code?
|
||||
pubDate: 2023-06-26
|
||||
permalink: >
|
||||
archive/2023/06/26/is-any-code-without-tests-legacy
|
||||
tags:
|
||||
- automated-testing
|
||||
---
|
||||
|
||||
While I can't find the original quote, I've heard numerous people describe any code without automated tests as legacy.
|
||||
|
||||
Legacy code is typically inherited from other Developers and is riskier to work on and harder to change, as there is no guarantee changing one piece of code won't cause breakages elsewhere in the codebase.
|
||||
|
||||
This is true for code that doesn't have accompanying automated tests, regardless of when it was written.
|
||||
|
||||
I can release a feature to an environment, and although it may be checked and tested at the time, it likely won't be again for every subsequent release. Automated tests can run automatically for every commit and before every deployment, ensuring the code continues to work and for it to be edited without causing regressions.
|
Loading…
Reference in a new issue