#unittests — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #unittests, aggregated by home.social.
-
One of the beautiful things about Sublime Merge¹ (and git/diffs) is that you can see exactly what has changed in complex expected values in tests to ensure that you’re updating the tests without overlooking regressions.
(This is from the Markdown page loader tests in Kitten², as I’m refactoring to implement the upcoming breaking change in the stateful components API³ as it affects the generated code for stateful layout components in Markdown pages.)
¹ Which I always have running, full-screen on its own monitor.
² https://kitten.small-web.org
³ Currently experimental and undocumented but that should change once this breaking change is implemented.#git #diff #unitTests #tape #SublimeMerge #Kitten #SmallWeb #web #dev #developerExperience
-
𝐓𝐨𝐝𝐚𝐲, 𝐀𝐩𝐫𝐢𝐥 27, is the last day to secure your spot at the 𝐞𝐚𝐫𝐥𝐲-𝐛𝐢𝐫𝐝 𝐫𝐚𝐭𝐞 for my workshop 𝐖𝐞𝐥𝐥-𝐁𝐚𝐥𝐚𝐧𝐜𝐞𝐝 𝐓𝐞𝐬𝐭-𝐃𝐫𝐢𝐯𝐞𝐧 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭. Join us on 𝐌𝐚𝐲 21-22, 2026 at 𝐓𝐡𝐞 𝐁𝐫𝐚𝐢𝐧 𝐄𝐦𝐛𝐚𝐬𝐬𝐲 𝐢𝐧 𝐀𝐧𝐭𝐰𝐞𝐫𝐩 .
Don’t miss this final chance to invest in your skills at a reduced price.
🔗 𝐒𝐞𝐜𝐮𝐫𝐞 𝐲𝐨𝐮𝐫 𝐬𝐩𝐨𝐭 𝐧𝐨𝐰.
For more information: https://principal-it.eu/training/well-balanced-test-driven-development.html
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
𝐓𝐨𝐝𝐚𝐲, 𝐀𝐩𝐫𝐢𝐥 27, is the last day to secure your spot at the 𝐞𝐚𝐫𝐥𝐲-𝐛𝐢𝐫𝐝 𝐫𝐚𝐭𝐞 for my workshop 𝐖𝐞𝐥𝐥-𝐁𝐚𝐥𝐚𝐧𝐜𝐞𝐝 𝐓𝐞𝐬𝐭-𝐃𝐫𝐢𝐯𝐞𝐧 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭. Join us on 𝐌𝐚𝐲 21-22, 2026 at 𝐓𝐡𝐞 𝐁𝐫𝐚𝐢𝐧 𝐄𝐦𝐛𝐚𝐬𝐬𝐲 𝐢𝐧 𝐀𝐧𝐭𝐰𝐞𝐫𝐩 .
Don’t miss this final chance to invest in your skills at a reduced price.
🔗 𝐒𝐞𝐜𝐮𝐫𝐞 𝐲𝐨𝐮𝐫 𝐬𝐩𝐨𝐭 𝐧𝐨𝐰.
For more information: https://principal-it.eu/training/well-balanced-test-driven-development.html
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
𝐓𝐨𝐝𝐚𝐲, 𝐀𝐩𝐫𝐢𝐥 27, is the last day to secure your spot at the 𝐞𝐚𝐫𝐥𝐲-𝐛𝐢𝐫𝐝 𝐫𝐚𝐭𝐞 for my workshop 𝐖𝐞𝐥𝐥-𝐁𝐚𝐥𝐚𝐧𝐜𝐞𝐝 𝐓𝐞𝐬𝐭-𝐃𝐫𝐢𝐯𝐞𝐧 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭. Join us on 𝐌𝐚𝐲 21-22, 2026 at 𝐓𝐡𝐞 𝐁𝐫𝐚𝐢𝐧 𝐄𝐦𝐛𝐚𝐬𝐬𝐲 𝐢𝐧 𝐀𝐧𝐭𝐰𝐞𝐫𝐩 .
Don’t miss this final chance to invest in your skills at a reduced price.
🔗 𝐒𝐞𝐜𝐮𝐫𝐞 𝐲𝐨𝐮𝐫 𝐬𝐩𝐨𝐭 𝐧𝐨𝐰.
For more information: https://principal-it.eu/training/well-balanced-test-driven-development.html
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
𝐓𝐨𝐝𝐚𝐲, 𝐀𝐩𝐫𝐢𝐥 27, is the last day to secure your spot at the 𝐞𝐚𝐫𝐥𝐲-𝐛𝐢𝐫𝐝 𝐫𝐚𝐭𝐞 for my workshop 𝐖𝐞𝐥𝐥-𝐁𝐚𝐥𝐚𝐧𝐜𝐞𝐝 𝐓𝐞𝐬𝐭-𝐃𝐫𝐢𝐯𝐞𝐧 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭. Join us on 𝐌𝐚𝐲 21-22, 2026 at 𝐓𝐡𝐞 𝐁𝐫𝐚𝐢𝐧 𝐄𝐦𝐛𝐚𝐬𝐬𝐲 𝐢𝐧 𝐀𝐧𝐭𝐰𝐞𝐫𝐩 .
Don’t miss this final chance to invest in your skills at a reduced price.
🔗 𝐒𝐞𝐜𝐮𝐫𝐞 𝐲𝐨𝐮𝐫 𝐬𝐩𝐨𝐭 𝐧𝐨𝐰.
For more information: https://principal-it.eu/training/well-balanced-test-driven-development.html
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
𝐓𝐨𝐝𝐚𝐲, 𝐀𝐩𝐫𝐢𝐥 27, is the last day to secure your spot at the 𝐞𝐚𝐫𝐥𝐲-𝐛𝐢𝐫𝐝 𝐫𝐚𝐭𝐞 for my workshop 𝐖𝐞𝐥𝐥-𝐁𝐚𝐥𝐚𝐧𝐜𝐞𝐝 𝐓𝐞𝐬𝐭-𝐃𝐫𝐢𝐯𝐞𝐧 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭. Join us on 𝐌𝐚𝐲 21-22, 2026 at 𝐓𝐡𝐞 𝐁𝐫𝐚𝐢𝐧 𝐄𝐦𝐛𝐚𝐬𝐬𝐲 𝐢𝐧 𝐀𝐧𝐭𝐰𝐞𝐫𝐩 .
Don’t miss this final chance to invest in your skills at a reduced price.
🔗 𝐒𝐞𝐜𝐮𝐫𝐞 𝐲𝐨𝐮𝐫 𝐬𝐩𝐨𝐭 𝐧𝐨𝐰.
For more information: https://principal-it.eu/training/well-balanced-test-driven-development.html
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
Letting the implementation details of the Subject Under Test seep into your test code quickly becomes problematic. It harms readability, forcing readers to decipher the test’s behavior, sometimes even debug it, just to understand what’s happening. Tests should be simple and easy to understand! That’s why it’s crucial to keep the domain knowledge in the production code, and out of your tests.
https://principal-it.eu/2020/09/prevent-domain-knowledge-from-sneaking-into-solitary-tests/
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
Letting the implementation details of the Subject Under Test seep into your test code quickly becomes problematic. It harms readability, forcing readers to decipher the test’s behavior, sometimes even debug it, just to understand what’s happening. Tests should be simple and easy to understand! That’s why it’s crucial to keep the domain knowledge in the production code, and out of your tests.
https://principal-it.eu/2020/09/prevent-domain-knowledge-from-sneaking-into-solitary-tests/
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
Letting the implementation details of the Subject Under Test seep into your test code quickly becomes problematic. It harms readability, forcing readers to decipher the test’s behavior, sometimes even debug it, just to understand what’s happening. Tests should be simple and easy to understand! That’s why it’s crucial to keep the domain knowledge in the production code, and out of your tests.
https://principal-it.eu/2020/09/prevent-domain-knowledge-from-sneaking-into-solitary-tests/
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
Letting the implementation details of the Subject Under Test seep into your test code quickly becomes problematic. It harms readability, forcing readers to decipher the test’s behavior, sometimes even debug it, just to understand what’s happening. Tests should be simple and easy to understand! That’s why it’s crucial to keep the domain knowledge in the production code, and out of your tests.
https://principal-it.eu/2020/09/prevent-domain-knowledge-from-sneaking-into-solitary-tests/
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
Letting the implementation details of the Subject Under Test seep into your test code quickly becomes problematic. It harms readability, forcing readers to decipher the test’s behavior, sometimes even debug it, just to understand what’s happening. Tests should be simple and easy to understand! That’s why it’s crucial to keep the domain knowledge in the production code, and out of your tests.
https://principal-it.eu/2020/09/prevent-domain-knowledge-from-sneaking-into-solitary-tests/
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
Due to popular demand, I’ve extended the early-bird discount 𝐮𝐧𝐭𝐢𝐥 𝐌𝐨𝐧𝐝𝐚𝐲, 𝐀𝐩𝐫𝐢𝐥 27! Don’t miss this opportunity to invest in your skills at a reduced rate.
🔗 𝐒𝐞𝐜𝐮𝐫𝐞 𝐲𝐨𝐮𝐫 𝐬𝐩𝐨𝐭 𝐭𝐨𝐝𝐚𝐲 and learn how to build tests that support your development process (see link in the comments)
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
(2/2)
-
Due to popular demand, I’ve extended the early-bird discount 𝐮𝐧𝐭𝐢𝐥 𝐌𝐨𝐧𝐝𝐚𝐲, 𝐀𝐩𝐫𝐢𝐥 27! Don’t miss this opportunity to invest in your skills at a reduced rate.
🔗 𝐒𝐞𝐜𝐮𝐫𝐞 𝐲𝐨𝐮𝐫 𝐬𝐩𝐨𝐭 𝐭𝐨𝐝𝐚𝐲 and learn how to build tests that support your development process (see link in the comments)
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
(2/2)
-
Due to popular demand, I’ve extended the early-bird discount 𝐮𝐧𝐭𝐢𝐥 𝐌𝐨𝐧𝐝𝐚𝐲, 𝐀𝐩𝐫𝐢𝐥 27! Don’t miss this opportunity to invest in your skills at a reduced rate.
🔗 𝐒𝐞𝐜𝐮𝐫𝐞 𝐲𝐨𝐮𝐫 𝐬𝐩𝐨𝐭 𝐭𝐨𝐝𝐚𝐲 and learn how to build tests that support your development process (see link in the comments)
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
(2/2)
-
Due to popular demand, I’ve extended the early-bird discount 𝐮𝐧𝐭𝐢𝐥 𝐌𝐨𝐧𝐝𝐚𝐲, 𝐀𝐩𝐫𝐢𝐥 27! Don’t miss this opportunity to invest in your skills at a reduced rate.
🔗 𝐒𝐞𝐜𝐮𝐫𝐞 𝐲𝐨𝐮𝐫 𝐬𝐩𝐨𝐭 𝐭𝐨𝐝𝐚𝐲 and learn how to build tests that support your development process (see link in the comments)
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
(2/2)
-
Due to popular demand, I’ve extended the early-bird discount 𝐮𝐧𝐭𝐢𝐥 𝐌𝐨𝐧𝐝𝐚𝐲, 𝐀𝐩𝐫𝐢𝐥 27! Don’t miss this opportunity to invest in your skills at a reduced rate.
🔗 𝐒𝐞𝐜𝐮𝐫𝐞 𝐲𝐨𝐮𝐫 𝐬𝐩𝐨𝐭 𝐭𝐨𝐝𝐚𝐲 and learn how to build tests that support your development process (see link in the comments)
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
(2/2)
-
Today, I have written 15 #UnitTests, and fixed a bunch of bugs that they'd revealed. This means that my kernel is now crashing later in the start-up process than it was this morning. Victory!
-
Struggling with brittle tests that slow you down? Join my 𝐖𝐞𝐥𝐥-𝐁𝐚𝐥𝐚𝐧𝐜𝐞𝐝 𝐓𝐞𝐬𝐭-𝐃𝐫𝐢𝐯𝐞𝐧 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭workshop on 𝐌𝐚𝐲 21-22, 2026 in Antwerp! Learn how to write reliable, maintainable tests that help you think about software design and prevent defects. Early -bird tickets are available until 𝐀𝐩𝐫𝐢𝐥 19.
For more information: https://principal-it.eu/training/well-balanced-test-driven-development.html
-
This two-day, hands-on workshop blends theory with practice in a real-world codebase. Yotdd #unittests #softwaredesign #softwarecrafting #xp to master the art of writing loosely coupled and highly maintainable automated developer tests.
𝐑𝐞𝐠𝐢𝐬𝐭𝐞𝐫 𝐛𝐲 𝐀𝐩𝐫𝐢𝐥 19 𝐭𝐨 𝐭𝐚𝐤𝐞 𝐚𝐝𝐯𝐚𝐧𝐭𝐚𝐠𝐞 𝐨𝐟 𝐭𝐡𝐞 𝐞𝐚𝐫𝐥𝐲-𝐛𝐢𝐫𝐝 𝐝𝐢𝐬𝐜𝐨𝐮𝐧𝐭! Spots are limited, so visit my website (https://principal-it.eu/training/well-balanced-test-driven-development.html) to learn more and secure your spot.
-
“I’m writing unit tests because I have to. They just confirm that my code works, which I already know. They are tedious to write, and often stop working when I change the implementation of the system. Maintaining unit tests is often difficult and takes a lot of time out of my day.”
Does this sound familiar? Then you might be interested in my workshop, 𝐖𝐞𝐥𝐥-𝐁𝐚𝐥𝐚𝐧𝐜𝐞𝐝 𝐓𝐞𝐬𝐭-𝐃𝐫𝐢𝐯𝐞𝐧 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭, on 21 𝐚𝐧𝐝 22 𝐌𝐚𝐲 2026 𝐚𝐭 𝐓𝐡𝐞 𝐁𝐫𝐚𝐢𝐧 𝐄𝐦𝐛𝐚𝐬𝐬𝐲 𝐢𝐧 𝐀𝐧𝐭𝐰𝐞𝐫𝐩.
-
New article: Tales Of TDD - One Test Double To Rule Them All
A short story about the pragmatic use of test doubles.
https://principal-it.eu/2026/03/tdd-tales-one-test-double/#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
Without proper TDD, developers keep pinging Google AI Studio to generate missing unit tests, turning AI assistance into a reminder service. Discover why solid test‑driven practices still matter for reliable AI‑powered code and how open‑source teams can avoid this trap. #AIStudio #TestDrivenDevelopment #UnitTests #GoogleAI
🔗 https://aidailypost.com/news/lack-tdd-forces-constant-reminders-google-ai-studio-tests
-
When learning Test-Driven Development (TDD), developers often struggle with identifying boundary conditions and exceptional cases. One resource that has been incredibly helpful to me over the years is the 𝐓𝐞𝐬𝐭 𝐇𝐞𝐮𝐫𝐢𝐬𝐭𝐢𝐜𝐬 𝐂𝐡𝐞𝐚𝐭 𝐒𝐡𝐞𝐞𝐭, created by Elisabeth Hendrickson, James Lyndsay, and Dale Emery. This concise document provides a wealth of inspiration for uncovering edge case scenarios.
You can download the cheat sheet here:
https://www.scribd.com/document/17602488/testheuristicscheatsheetv1 -
The intent of Test-Driven Development is to start from what you know, no matter how little, and work incrementally towards the things that you don’t know, taking as many small steps as necessary. (2/2)
-
A while ago, I was asked whether one should use Inside-Out TDD or Outside-In TDD. At first glance, it might seem important to choose one approach over the other. However, this isn’t the case at all. Inside-Out and Outside-In TDD are not mutually exclusive. There’s no need to rigidly commit to just one. Instead, we should practice and master both approaches to develop an intuitive sense, a *gut instinct*, for when to apply a certain approach. (1/2)
-
A good testing strategy incorporates both defect prevention and defect detection. Defect prevention is the most important. Finding a defect after the code has been written is wasteful. Preventing defects by thinking about and writing tests before the production code is always the best strategy. When it comes to finding defects, the faster they are found, the shorter the feedback loop, and the sooner measures can be taken to prevent them in the future.
-
37 000 unit-тестов против Gradle: как мы добились 12-минутного прогона
Привет я Федотов Михаил, технический лидер по Android разработке в Альфа-банке. Сегодня хочу поговорить про performance (ускорение) unit тестов. Я работаю на проекте Android приложения Альфа-банка для физических лиц. Для нашего большого проекта это время — больная тема, так как у нас около 800 модулей и большая часть кода полностью покрыта unit тестами (за некоторыми исключениями, например, view классы). Сейчас у нас почти 6000 spec (тест-классов) в которых 37 000 тест-кейсов. Общее время прогона всех тестов на CI превышало 3 часа. Локально все тесты прогнать вообще было утопией, так как вероятнее всего сборка просто падала от нехватки оперативной памяти. Сейчас все тесты проекта мы научились прогонять за честные 12 минут и я расскажу что для этого потребовалось.
https://habr.com/ru/companies/alfa/articles/993352/
#unittests #gradle #mockk #performance_optimization #android
-
I've been teaching this course at several different companies over the past couple of years. Feedback from past attendees has been unanimously positive, and I’m thrilled to open this experience to a wider audience. 𝐑𝐞𝐠𝐢𝐬𝐭𝐞𝐫 𝐛𝐲 𝐀𝐩𝐫𝐢𝐥 19 𝐭𝐨 𝐭𝐚𝐤𝐞 𝐚𝐝𝐯𝐚𝐧𝐭𝐚𝐠𝐞 𝐨𝐟 𝐭𝐡𝐞 𝐞𝐚𝐫𝐥𝐲-𝐛𝐢𝐫𝐝 𝐝𝐢𝐬𝐜𝐨𝐮𝐧𝐭! Spots are limited, so visit my website to learn more and secure your spot.
🔗 Secure your spot now: https://principal-it.eu/training/well-balanced-test-driven-development.html
-
I’m happy to announce my workshop, ‘𝐖𝐞𝐥𝐥-𝐁𝐚𝐥𝐚𝐧𝐜𝐞𝐝 𝐓𝐞𝐬𝐭-𝐃𝐫𝐢𝐯𝐞𝐧 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭’ on 21 𝐚𝐧𝐝 22 𝐌𝐚𝐲 2025 at 𝐓𝐡𝐞 𝐁𝐫𝐚𝐢𝐧 𝐄𝐦𝐛𝐚𝐬𝐬𝐲 𝐢𝐧 𝐀𝐧𝐭𝐰𝐞𝐫𝐩. This two-day, hands-on workshop blends theory with practice in a real-world codebase. You'll be collaborating together with fellow attendees to master the art of writing loosely coupled and highly maintainable automated developer tests.
(1/2)
-
I might be a few months late, but I finally found some time to publish my "magnetic_tape" crypto challenge from #NullCon #Berlin #HackIM #CTF 2025:
https://github.com/OOTS/magnetic_tape
I included the source code (was published anyway during the CTF), my own solution, my own #writeup, and some internal files (#Dockerfile, docker-compose, minimal #python #unittests).
Also: #NullCon #Goa #HackIM #CTF 2026 is happening in a few days: https://ctf.nullcon.net
Go check it out! -
I might be a few months late, but I finally found some time to publish my "magnetic_tape" crypto challenge from #NullCon #Berlin #HackIM #CTF 2025:
https://github.com/OOTS/magnetic_tape
I included the source code (was published anyway during the CTF), my own solution, my own #writeup, and some internal files (#Dockerfile, docker-compose, minimal #python #unittests).
Also: #NullCon #Goa #HackIM #CTF 2026 is happening in a few days: https://ctf.nullcon.net
Go check it out! -
I might be a few months late, but I finally found some time to publish my "magnetic_tape" crypto challenge from #NullCon #Berlin #HackIM #CTF 2025:
https://github.com/OOTS/magnetic_tape
I included the source code (was published anyway during the CTF), my own solution, my own #writeup, and some internal files (#Dockerfile, docker-compose, minimal #python #unittests).
Also: #NullCon #Goa #HackIM #CTF 2026 is happening in a few days: https://ctf.nullcon.net
Go check it out! -
I might be a few months late, but I finally found some time to publish my "magnetic_tape" crypto challenge from #NullCon #Berlin #HackIM #CTF 2025:
https://github.com/OOTS/magnetic_tape
I included the source code (was published anyway during the CTF), my own solution, my own #writeup, and some internal files (#Dockerfile, docker-compose, minimal #python #unittests).
Also: #NullCon #Goa #HackIM #CTF 2026 is happening in a few days: https://ctf.nullcon.net
Go check it out! -
A test suite is to its software
as a map is to its territory.
_________
("The map is not the territory.")—Vassil, arms covered in virtual grease to the elbows,
having fun fixing a test suite (whose software seems to work).--␠
My other signature is really witty.#ComputerProgramming
#SoftwareEngineering
#TestingSoftware
#UnitTesting
#UnitTests -
One hidden cost of unit tests taking too long is that it puts enormous soft incentive on your devs to stop adding unit tests.
If they start to see the test system itself as an impediment to development, they'll interpret it as damage and route around it.
For large projects, that's the actual reason to modularize and compartmentalize; it's not so much about simplicity (fewer modules can actually be simpler because everything is less far away), it's about being able to have some confidence that a change here rarely changes something over there.
-
This book was published in 2003, which is also the year that I read it. The sentence “A developer is a tester is a developer” has always stuck with me. Unfortunately, in 2026, not much has changed. There is certainly a correlation between quality and ownership of testing. Software teams that adopt a holistic approach, where everyone is responsible for quality, will always outperform those that don’t. (2/2)
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
One of the books that had a profound impact during my early years as a software developer was “Debugging Applications for Microsoft .NET and Microsoft Windows” by John Robbins. I fondly remember the following paragraph from one of the first chapters of the book. (1/2)
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
However, developers are often conditioned to believe that their work should always involve complexity.
“Easy things? Is that a joke? We’re software engineers! Complexity is our trade.”This is one of the main reasons why many people are turned off by Test-Driven Development. But if you can move past this mindset, you’ll be in a much better place. I favour small, ridiculous steps over larger steps that feed into complexity any day.
-
Test-Driven Development and software design are two sides of the same coin. However, one doesn’t automatically lead to the other. We have to learn about what good design entails, while also learning and practicing Test-Driven Development in conjunction with each other.
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
These are ones that received their share for 2025:
- Elephant Haven
- De Zonnegloed
- Knaagje
- VOC Brasschaat
- Forrest and Friends
- Lwiro Primates Rehabilitation Center
- Ongehoord
- Dryade
- Sea Shepherd Belgium
- Sheldrick Wildlife Trust(2/2)
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
-
On the first day of the new year, I divide all the proceeds of my book to animal welfare organisations. When you buy a copy of my book, you’re not only learning about unit tests, you’re also providing a helping hand to these organisations. Thanks to everyone who purchased my book in 2025!
https://principal-it.eu/books.html(1/2)
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign -
I'm pressing (X) to doubt the benefits of unit testing on any small-scale, personal project.
Here's why: on my most recent project I've been taking advantage of emacs time-tracking to do some meticulous clock-in / clock-out of each feature I accomplish. And I've been doing that as I've gone over a transition from a simpler backing store and web app model to a more complicated "maintain local state and lazily sync it to the server" model. Full-stack, so I'm developing the client and server. All in TypeScript.
... and what I'm finding is that it's taken me about twice-plus-a-bit the time to rework the program to use the new backing store... but past experience shows that it would have taken me double the time to write this with unit tests. So all told, the no-tests approach is taking as long except that in the middle there I had a working prototype with the old architecture faster.
I think unit testing is still wise on any project you intend to collaborate with other people on (it encodes constraints developers are assuming are true even if the code or architecture doesn't force it). And I note that sometimes that "future collaborator" is "You, two years from now."
But if it's a personal project and you're hot-developing on it so you're not worried about a 2 year gap... I'm not as sold on a test-heavy approach. Rapid iteration works better for me, even if it introduces weird bugs unit testing would have caught. I'm only writing enough to solve the problem in front of me, so I'm de-facto testing as I use the end result.
-
Acceptance Tests and Unit Tests as Documents First, Tests Second
The real reason [acceptance tests and unit tests] aren’t redundant is that their primary function is not testing. The fact that they are tests is incidental. Unit tests and acceptance tests are documents first, and tests second. As my wife and I were listening to Uncle Bob's book on professionalism in software, this line surprised me. Maybe it's just because I don't understand tests as well as I'd like, but I had to stop and take note. He clarified exactly what he meant, too: […]https://kerrick.blog/posts/2025/acceptance-tests-and-unit-tests-as-documents-first-tests-second/
-
Acceptance Tests and Unit Tests as Documents First, Tests Second
The real reason [acceptance tests and unit tests] aren’t redundant is that their primary function is not testing. The fact that they are tests is incidental. Unit tests and acceptance tests are documents first, and tests second. As my wife and I were listening to Uncle Bob's book on professionalism in software, this line surprised me. Maybe it's just because I don't understand tests as well as I'd like, but I had to stop and take note. He clarified exactly what he meant, too: […]https://kerrick.blog/posts/2025/acceptance-tests-and-unit-tests-as-documents-first-tests-second/
-
Acceptance Tests and Unit Tests as Documents First, Tests Second
The real reason [acceptance tests and unit tests] aren’t redundant is that their primary function is not testing. The fact that they are tests is incidental. Unit tests and acceptance tests are documents first, and tests second. As my wife and I were listening to Uncle Bob's book on professionalism in software, this line surprised me. Maybe it's just because I don't understand tests as well as I'd like, but I had to stop and take note. He clarified exactly what he meant, too: […]https://kerrick.blog/posts/2025/acceptance-tests-and-unit-tests-as-documents-first-tests-second/
-
Acceptance Tests and Unit Tests as Documents First, Tests Second
The real reason [acceptance tests and unit tests] aren’t redundant is that their primary function is not testing. The fact that they are tests is incidental. Unit tests and acceptance tests are documents first, and tests second. As my wife and I were listening to Uncle Bob's book on professionalism in software, this line surprised me. Maybe it's just because I don't understand tests as well as I'd like, but I had to stop and take note. He clarified exactly what he meant, too: […]https://kerrick.blog/posts/2025/acceptance-tests-and-unit-tests-as-documents-first-tests-second/
-
Automated Tests as Waste vs. Needed
“How do you reconcile the lean view that tests are waste with the need for tests in software development?” Mary’s immediate response: “Unit tests are what let you stop the line.”
Dottie Acton, Foreword to Leading Lean Software Development: Results Are Not the Point by Mary and Tom Poppendieck
-
Automated Tests as Waste vs. Needed
Dottie Acton, Foreword, Leading Lean Software Development: Results Are Not the Point, by Mary and Tom Poppendieck“How do you reconcile the lean view that tests are waste with the need for tests in software development?” Mary’s immediate response: “Unit tests are what let you stop the line.”
-
Automated Tests as Waste vs. Needed
Dottie Acton, Foreword, Leading Lean Software Development: Results Are Not the Point, by Mary and Tom Poppendieck“How do you reconcile the lean view that tests are waste with the need for tests in software development?” Mary’s immediate response: “Unit tests are what let you stop the line.”