2024-01-03 20:00:00 +00:00
|
|
|
---
|
|
|
|
title: >
|
2024-09-08 22:09:54 +00:00
|
|
|
Everyone tests their code
|
2024-01-03 20:00:00 +00:00
|
|
|
pubDate: 2023-08-11
|
|
|
|
permalink: >-
|
2024-12-19 20:26:33 +00:00
|
|
|
daily/2023/08/11/everyone-tests-their-code
|
2024-01-03 20:00:00 +00:00
|
|
|
tags:
|
2024-09-08 22:09:54 +00:00
|
|
|
- automated-testing
|
|
|
|
- test-driven-development
|
2024-01-03 20:00:00 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
No one writes code, commits it and pushes it to production without checking it works.
|
|
|
|
|
|
|
|
Everyone tests their code, but they usually do it manually. They switch from the code to a browser or terminal, run the code and evaluate the result.
|
|
|
|
|
|
|
|
This takes time, you need to switch contexts, and the test is only valid for that time.
|
|
|
|
|
|
|
|
There's no guarantee it will still work in the future.
|
|
|
|
|
|
|
|
Automated testing, however, means you can write your code and run the tests without leaving your IDE or text editor.
|
|
|
|
|
|
|
|
The tests can also be run in the future to ensure the functionality works without needing to re-test it manually.
|