The Devil’s Clean Code: Lessons from Migrating a 20-Year-Old Legacy Project
TL;DR Write tests. You don't truly realize how messy code is until you try to write a unit test for it. Understand your annotations. Don’t use @Data when @Gett...
TL;DR Write tests. You don't truly realize how messy code is until you try to write a unit test for it. Understand your annotations. Don’t use @Data when @Gett...
Unit testing is often treated as a checkbox on a project’s checklist. Teams either try to test everything or avoid tests altogether because they feel slow, brit...
Laravel factories make testing a breeze, especially when your models are related. However, when a model has multiple relationships to the same target model, the...
Day 08 : Unit Testing — The Real Reason Interfaces Exist Proving service behavior without repositories or databases Introduction Many tutorials introduce inter...
The Stalling Design Problem There’s a moment I keep encountering when practicing TDD: tests pass, coverage improves, and refactoring feels safe. Yet, at some p...
Chapter 13: The Table of Truth The Wednesday rain beat a steady rhythm against the archive windows, blurring the Manhattan skyline into smears of gray and slat...
!Cover image for Stop Flaky Tests: Freeze Time in Laravel Testinghttps://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/ht...
Testing Database Logic and Migrations in Laravel Database logic is one of the hardest parts of an application to test properly. Not because it is exotic or com...
Make the method virtual This is the minimal change and fully supported by NSubstitute. csharp public class ProductService { public virtual int GetPrice { retur...
2026 Outlook With 2025 coming to a close, it’s time to look ahead to 2026! MiniScript is now eight years old. Many programming languages really come into their...
Article URL: https://github.com/mockito/mockito/issues/3777 Comments URL: https://news.ycombinator.com/item?id=46414078 Points: 33 Comments: 0...
Introduction After a long hiatus, I’m returning to the basics by revisiting core concepts essential for QA engineers and developers. This article uses the ninj...