When you need to inspect, modify, or replay HTTP(S) traffic, few tools are as powerful and flexible as mitmproxy.
It's open-source, scriptable in Python, and works seamlessly as a man-in-the-middle proxy.
4 posts tagged with "testing"
View All TagsFundamentals of Modular Architecture

In software development, managing dependencies and state is crucial for ensuring deterministic behavior: for any given input, we aim for a consistent output (This is a key reason behind the growing hype for functional programming, as it emphasizes immutability and stateless functions, simplifying the management of dependencies and state). However, as the number of inputs and modules increases, so does the complexity of handling them, potentially leading to a higher risk of bugs—unintended outcomes. To mitigate this, it's essential to minimize and manage dependencies effectively, acknowledging that they can introduce similar challenges by increasing system interconnectedness and potential failure points.
Beyond Bug Catching

The following article ("Stop testing your code!") made me think about the benefits of testing beyond Bug Cacthing.
Diving into the world of tests reveals a multitude of benefits beyond the obvious ones (like ensuring functionality integrity and catching bugs early). Let's break down some of these benefits and then touch upon common mistakes that can undermine these advantages.
Testing shadow Dom elements

Testing Shadow DOM elements can be a bit tricky due to their encapsulation. However, you can access the Shadow Root to test the elements inside it. In this article, we'll explore how to test Shadow DOM elements using React, TypeScript, and @testing-library/react
.