I love unit testing Math - I can’t really explain why
#math #swe #science #computing #unitTests #rustLang #eo #satellite #radar #SaaS
New article: Tales Of TDD - One Test Double To Rule Them All
A short story about the pragmatic use of test doubles.
principal-it.eu/2026/03/tdd-tales-one-te...
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
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 […]
[Original post on mastodon.social]
🎸 Your .NET tests deserve a world tour — not a local gig. Spargine’s CountryRepository gives you full global datasets so your tests ROCK with real-world accuracy 🌍⚡
Dive in 👇
#dotnet10 #Spargine #UnitTests #MVPBuzz
dotnettips.wordpress.com/2025/02/23/h...
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)
principal-it.eu/2020/06/test-driven-deve...
#tdd #unittests #testing […]
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 […]
[Original post on mastodon.social]
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 […]
[Original post on mastodon.social]
Today at work I implemented unit tests for our backend and immediately found 3 bugs in production code lol.
Write 👏 automated 👏 tests 👏 please!
Here's an interesting read,
codemanship.wordpress.com/2026/02/04/t...
#SoftwareDevelopment #UnitTests #DoItRight
Headline: Dev New Years Resolution Is More Tests
Dev New Years Resolution Is More Tests
Ringing in the new year, another developer has proclaimed a new years resolution to make all of their code, "well tested".
globalglob.dev/articles/dev...
#unittests #tests #testing #programming
There’s no correlation between a single test case and a single Red-Green-Refactor cycle. These short cycles allow you to go fast, which might feel counterintuitive at first, but really help you moving forward.
(4/4)
#tdd #unittests #softwaredesign
Unit, Widget, and Integration Tests in Flutter: What’s the Difference? #Flutter #Testing #UnitTests #WidgetTests #IntegrationTests
Choosing LLMs to generate high-quality unit tests for code
buff.ly/KaBfjnV
#Java #llm #unittests
There are basically three ways to verify the outcome of a test:
- Verify the state of the Subject Under Test.
- Verify the return value of a method or function.
- Verify a value passed to a collaborator of the Subject Under Test.
That's it! Those are the […]
[Original post on mastodon.social]
On 4 𝐚𝐧𝐝 5 𝐃𝐞𝐜𝐞𝐦𝐛𝐞𝐫 2025, I’ll be hosting my workshop 𝐖𝐞𝐥𝐥-𝐁𝐚𝐥𝐚𝐧𝐜𝐞𝐝 𝐓𝐞𝐬𝐭-𝐃𝐫𝐢𝐯𝐞𝐧 𝐃𝐞𝐯𝐞𝐥𝐨𝐩𝐦𝐞𝐧𝐭 at the 𝐁𝐫𝐚𝐢𝐧 𝐄𝐦𝐛𝐚𝐬𝐬𝐲 𝐢𝐧 𝐀𝐧𝐭𝐰𝐞𝐫𝐩.
⏰ The early bird discount expires this Friday, 31/10! So don’t wait if you want to master the art of writing loosely coupled and […]
[Original post on mastodon.social]
Hey #developer! Do you suffer from test failures when #refactoring? I dare you to investigate your #unitTests. I'm confident that you will find your tests using a lot of mocks! These #solitaryTests tend to break when refactoring.
Why don't you try #sociableTesting?
#java
When using TDD we get to learn about the countless decisions we make while writing code. We make progress by iterating through short Red-Green-Refactor cycles. This mindset basically implies being satisfied with improvement, rather than expecting instant […]
[Original post on mastodon.social]
A while back, I was reading the Farnam Street Blog when I came across the following paragraph:
“𝐖𝐡𝐞𝐧 𝐦𝐢𝐬𝐭𝐚𝐤𝐞𝐬 𝐚𝐫𝐞 𝐜𝐡𝐞𝐚𝐩, 𝐲𝐨𝐮 𝐜𝐚𝐧 𝐦𝐨𝐯𝐞 𝐟𝐚𝐬𝐭 𝐚𝐧𝐝 𝐟𝐢𝐱 𝐰𝐡𝐚𝐭 𝐝𝐨𝐞𝐬𝐧’𝐭 𝐰𝐨𝐫𝐤. 𝐖𝐡𝐞𝐧 𝐦𝐢𝐬𝐭𝐚𝐤𝐞𝐬 𝐚𝐫𝐞 𝐞𝐱𝐩𝐞𝐧𝐬𝐢𝐯𝐞, 𝐲𝐨𝐮 𝐨𝐯𝐞𝐫𝐭𝐡𝐢𝐧𝐤 𝐞𝐯𝐞𝐫𝐲𝐭𝐡𝐢𝐧𝐠 𝐚𝐧𝐝 𝐬𝐭𝐢𝐥𝐥 𝐜𝐡𝐨𝐨𝐬𝐞 𝐰𝐫𝐨𝐧𝐠.”
It got me thinking. For me, this is the core […]
Ever get confused about what exactly is meant when people talk about #UnitTests, #IntegrationTests, #RegressionTests, and #SmokeTests? I wrote a little something about them to, hopefully, explain the differences and overlap: www.cassandrahl.com/blog/on-unit...
#Quality #Testing #SoftwareTesting
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.
𝐑𝐞𝐠𝐢𝐬𝐭𝐞𝐫 𝐛𝐲 𝐎𝐜𝐭𝐨𝐛𝐞𝐫 […]
[Original post on mastodon.social]
“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 […]
Alternatively, with Test-Driven Development (TDD), software developers start by writing a small test then write just enough code to make it pass, and iterate — building quality into software from the get-go instead of after the fact. This approach aligns […]
[Original post on mastodon.social]
Software developers using traditional methods start out by first writing the code. Only when the work has already been completed do they shift their focus to testing. (1/2)
#tdd #testdrivendevelopment #unittests #unittesting #softwaredesign
When naming tests, avoid using technical names of functions/classes. When we encorporate the name of a function into the descriptive name of a test method, and the respective function is later renamed, then the description of the test becomes completely […]
[Original post on mastodon.social]
After we’ve completed the Red-Green-Refactor cycle, when the design part is over, the test descends
into regression mode. At this point, it’s less about “designing” and more about “testing”
existing behaviour. That’s why it’s so important to start from a […]
[Original post on mastodon.social]
When doing Test-Driven Development, we use “tests” as a way to exercise the design of production
code before it exists. As such, we can see the choices we make in action before we decide to build
further upon it. At this point, it’s not so much about “testing” but more about “designing”. (1/2) […]
Assertion libraries can be considered as mini-DSL’s that make automated tests more readable. When a team of devs make their choice, they usually judge on API preference. While it’s very important to have readable tests, the API should never be the deciding […]
[Original post on mastodon.social]
The best thing about TDD is not necessarily the tests thats we write, but rather the instant feedback that we get from the decisions that we make during coding sessions. Especially when those decisions are related to the design of the system that we're […]
[Original post on mastodon.social]
✅ Track 2 starting now!
"Easy, Breezy, Beautiful... Django Unit Tests"
Transform your testing game! Discover how to write elegant, maintainable unit tests that actually make development fun 💪
#DjangoConUS #Testing #Django #UnitTests #TDD
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. 𝐑𝐞𝐠𝐢𝐬𝐭𝐞𝐫 𝐛𝐲 𝐎𝐜𝐭𝐨𝐛𝐞𝐫 31 𝐭𝐨 𝐭𝐚𝐤𝐞 𝐚𝐝𝐯𝐚𝐧𝐭𝐚𝐠𝐞 𝐨𝐟 […]
[Original post on mastodon.social]