Why should you unit test? What should you unit test? And how much?
Today's blog post answers these questions and provides some helpful guidelines.
The post is actually a lightly edited extract of a book on unit testing that I started about 10 years ago but never finished. Still, it has aged reasonably well.
I’ve said it before and I’ll say it again, most of y’all don’t know what it’s like to be a fediverse developer of a popular project and have to deal with all the negative feedback and personal attacks
Let’s be nicer to the devs of the fediverse who have been doing this mostly unpaid for the greater good, all I ask is for basic respect!
Anfora, Prismo, Firefish and dozens of other projects have been abandoned by their devs, and I’d bet the fediverse mentality towards devs is part of the reason
One good way to support the Fediverse's volunteer devs: ask them to work with volunteer design and user-research practitioners who help them to develop and test usable designs – before any substantial code is written.
Testing mockups and prototypes with the community would reduce unhappiness all around.
🔧 I'm currently testing the awesome Flask-based Mastodon Scheduler! It allows for scheduling posts, immediate tooting, and even image uploads. So far, it's looking great!
🤖 This is a test toot scheduled using the project itself.
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. extra
@nixCraft the devops version is when there are loads of test environments but no environment to test out devops stuff like IaC and pipelines. If there is one thing I’ve learned from devops work it is that dev is production to devs. Every env is production for someone’s job. #devops#iac#testing
There's a session on #testing#interop in the #fediverse tomorrow morning (pacific time) of the W3C's #SWICG, with presentations from a few people including yours truly.
If you are interested in how to make the Fediverse more reliably interoperate, and in building a community around automating tests that can be applied to lots of fediverse apps, come attend? The meeting is open to all.
Markdown tests
If you come across something that doesn't work pop it here