Rails Conf 2013 The Magic Tricks of Testing by Sandi Metz
5 人推荐 · 跨 5 个月 · 2013–2019

中文导读
面向对象架构名家 Sandi Metz 在 RailsConf 2013 上的经典演讲,提出了一套兼顾低维护成本与高稳定性的实用测试准则,倡导测试公开接口而非内部实现,合理使用 Mock。
为什么 HN 推它
虽在 RailsConf 发表,但其测试设计原则超越了 Ruby 语言本身,是所有软件工程师构建健康测试体系的必修课。
「一定要去看看 Sandi Metz 在 RailsConf 上那场不可思议的演讲。」HN 网友原话:watch Sandi Metz' incredible RailsConf talk
英文原摘要(HackerTube / Claude 整理)
Sandi Metz's RailsConf 2013 talk offers practical guidelines for deciding what to test and how, so tests stay cheap and stable. She argues for testing the public interface rather than implementation and using mocks appropriately.
HN recommends it as an incredible talk whose testing principles apply beyond Ruby.
HN 上的提及
watch Sandi Metz' incredible RailsConf talk
Shout out for Sandi Metz book POODR, and her Railsconf talk The Magic Tricks of Testing
I would recommend watching this video by Sandi Matz on testing
I particularly like her advice on using mocks in tests appropriately.
There are many good strategies to make it easier that in my experience have yet to be well adopted