I think that testable code is reusable code. When you test a function, you run the code in another context than it was built for (the production code). If your code is not reusable you will feel that pain in your tests.
This blog post gives an example of how getting side effects out of functions make them both easier to test and reuse.
With 7.4.2, you can set COVERAGE_CORE=sysmon globally on your CI, and it'll only use it where available (Python 3.12 and 3.13 alpha), and use the default for 3.11 and older.
Today, I FINALLY got fed up with the subtle bugs that come with lvh.me being such as short domain name; such as Rails' domains: :all not working by default (it's documented behavior! This sucks! https://api.rubyonrails.org/classes/ActionDispatch/Cookies.html)
So I registered local-loopback-wildcard.com. No matter what you throw, it always resolves to 127.0.0.1. So you can test against subdomains without TLD hacks. Your testing environment matches production; as it should be.
📌 TODAY
🧍 Join TPGi's @siblingpastry on September 6 at 12 PM ET for a webinar that dives into WCAG 2.2 and the range of new requirements for web accessibility testing.
Sigh. Apple really doesn’t test on physical devices, do they? This is what the new .inspector in SwiftUI does when your app is not in full screen mode. Same on iPad Mini on full-screen. Mac looks good.
This #multithreading bug had secretly been causing unpredictable Calendar crashes for years! It is now fixed—another thorn in our feet removed ☺️ #OpenSource#Linux#testing
Some late evening coding reminded me of the value of end-to-end tests. Several cases that have been passing as unit tests… don’t, when run as similar e2e tests. These tests of course exercise a whole bunch of other subsystems, like UI and configuration, which unit tests need not bother with. Mildly embarrassing, but the sooner discovered the better.
What's the easiest way to get some automated screenshots of a website (cross browser / different responsive sizes)? Best would be selfhosted / locally, maybe via #ddev + cypress, playwright, etc.? 📷 Thx for tipps! #webdev#testing#cypress#playwright
Why I made the world's worst keyboard
Youtube video link....