Integration test with Pulumi and Azure Kubernetes Service


Let’s see how to use Infrastructure as Code for the provisioning and the testing in an integration environment We are carrying out update activities on some products for one of our clients, gradually migrating to microservice architectures. One of these products has followed the policy of “do not touch what works” for a long time, and as a result, it becomes unmanageable over time. Some classes representing business logic have grown beyond measure, becoming very complex to modify, with insufficient test coverage and a business logic shared between the various domains that coexist in the same codebase.…
Read more âź¶

A different way of thinking about testing: the Property Based Test


Let’s see why a coverage of 100% is not enough to make us sleep safe and sound In my previous article, we have seen how testing and refactorizing legacy code with Golden Master Pattern. Now, we will continue to talk about testing, introducing a new paradigm with a simple example. We are familiar with writing tests based on examples. In literature we talk about “Example test”: given an input we have an expected output.…
Read more âź¶

Golden Master Pattern: don’t fear the legacy code!


Let’s see together how to modify legacy code ensuring it works thanks to the Golden Master Pattern Anyone who works in the software development world will have had the need to add features on the legacy code, perhaps inherited from the previous team, and on which you need to make an urgent fix. Many definitions of legacy code can be found in literature, the one that I prefer is: “By Legacy code, we mean the profitable code that we feel afraid to change”.…
Read more âź¶