Testing At Lightspeed: Deterministic Fakes Over Flaky Mocks
📰 Dev.to · speed engineer
Learn how to improve test suite performance by replacing flaky mocks with deterministic fakes, as seen in Google's rewrite of 50,000 tests
Action Steps
- Identify flaky mocks in your test suite using test failure analysis tools
- Replace mocks with deterministic fakes to ensure consistent test outcomes
- Implement a test rewriting process to update existing tests
- Configure your test framework to support deterministic fakes
- Monitor test suite performance and adjust as needed
Who Needs to Know This
Software engineers and test engineers can benefit from this approach to improve test reliability and reduce test suite runtime, leading to faster development cycles
Key Insight
💡 Deterministic fakes can significantly improve test reliability and reduce test suite runtime
Share This
🚀 Boost test suite performance by ditching flaky mocks for deterministic fakes! 🚀
Key Takeaways
Learn how to improve test suite performance by replacing flaky mocks with deterministic fakes, as seen in Google's rewrite of 50,000 tests
Full Article
Why Google Rewrote 50,000 Mock-Based Tests and Cut Test Suite Runtime by 67% Testing At...
DeepCamp AI