Revolut Jul 27, 2021

Best Practices for Unit Testing at Revolut

Article Summary

Revolut's iOS team ships weekly updates with minimal regression. Their secret? Making unit tests actually fun to write.

Arsen Gasparyan from Revolut's mobile team breaks down the friction points that make developers avoid writing tests. He shares three practical patterns that transformed their testing workflow from a chore into a productive, enjoyable practice.

Key Takeaways

Critical Insight

Three simple patterns (sample functions, MockFunc, and builders) removed the friction that made iOS developers avoid writing unit tests at Revolut.

The article includes full code examples and a gist link for the complete MockFunc implementation you can drop into your codebase today.

Recent from Revolut

Related Articles