Member-only story

Leverage On Redux To Execute Your Tests 100x Times Faster

How separating the logic from the view can accelerate your test speed, test quality, and productivity.

David Rodenas PhD
12 min readMar 1, 2025
Prompted and edited by the author.

In the previous article, I showed a technique for writing React components in a way that could be tested up to 100 times faster without losing accuracy. But it turns out that the same can also be achieved with Redux, and no additional pattern is needed.

Running with React is unacceptable

One of the things I’ve seen that most affects the speed and quality of development is the ability to run tests quickly. I’ve discussed this in many previous articles, but it’s not just coming from me; studies like Accelerate corroborate this perception.

And the thing is, the faster the tests run, the faster you get feedback, and the more opportunities there are to improve the code and product quality. And reaching a critical point, we can manage to enter a virtuous cycle.

The problem, despite not seeming so, is that testing with React is too slow.

In the previous article, after running the tests, I discovered that executing with React was about 100 times slower. That’s too much, and I wasn’t expecting it! And this time, while preparing this…

--

--

David Rodenas PhD
David Rodenas PhD

Written by David Rodenas PhD

Passionate software engineer & storyteller. Sharing knowledge to advance our skills. Join me on a journey of discovery in the world of software engineering.

Responses (4)