oliverdavies.uk/source/_daily_emails/2023-10-08.md

26 lines
1.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: >
Is test-driven development difficult?
pubDate: 2023-10-08
permalink: >-
archive/2023/10/08/is-test-driven-development-difficult
tags:
- software-development
- automated-testing
- test-driven-development
- continuous-integration
- trunk-based-development
---
I recently read a post where the writer said automated testing, test-driven development, continuous integration, trunk-based development, etc, are difficult.
I'm familiar with them and have been using them for some time, but I think trunk-based development is easier as there's only a single branch instead of many.
Continuous integration is pulling everyone else's code at least once daily and pushing yours to ensure it doesn't conflict.
Test-driven development is writing failing tests before any implementation code and refactoring once it passes.
I don't think these are technically difficult, but they do require an open mind, a willingness to learn, evaluate and consider alternative approaches and, in some cases, change existing behaviour.
Change can be the difficult part, not which brand you commit to, how often you push your code or when you write your tests.