Rails Conf 2013 The Magic Tricks of Testing by Sandi Metz
Confreaks5 HN recommenders · recommended in 5 months, 2013-2019
144K views · 13 years ago · talk · evergreen
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.
35:53RailsConf 2015 - Nothing is Something
Confreaks
84K views • 11 years ago
38:47RailsConf 2014 - All the Little Things by Sandi Metz
Confreaks
190K views • 12 years ago
45:55Ruby Conf 12 - Boundaries by Gary Bernhardt
Confreaks
58K views • 13 years ago
1:03:55🚀 TDD, Where Did It All Go Wrong (Ian Cooper)
DevTernity Conference
619K views • 8 years ago
1:15:58October CincyRb - Jim Weirich on Decoupling from Rails
Launch Scout
48K views • 13 years ago
1:01:17RailsConf 2014 - Keynote: Writing Software by David Heinemeier Hansson
Confreaks
123K views • 12 years ago
29:21Hillel Wayne - Beyond Unit Tests: Taking Your Testing to the Next Level - PyCon 2018
PyCon 2018
38K views • 8 years ago
51:57Lone Star Ruby Conference 2010 Real Software Engineering by Glenn Vanderburg
Confreaks
30K views • 15 years ago
47:34RailsConf 2011: Aaron Patterson, "Double Dream Hands: So Intense!"
O'Reilly
26K views • 15 years ago
49:54The Clean Architecture in Python
Next Day Video
114K views • 12 years ago
20:59Jim Coplien and Bob Martin Debate TDD
alexsmail
163K views • 14 years ago
28:06MountainWest RubyConf 2014 - But Really, You Should Learn Smalltalk
Confreaks
27K views • 12 years ago
7:157 minutes of Pharo Smalltalk for Rubyists
Avdi Grimm
37K views • 11 years ago
1:04:36J B Rainsberger Integrated Tests Are A Scam HD
Christopher Cabanne
49K views • 11 years ago
1:01:08RailsConf 2019 - Opening Keynote by David Heinemeier Hansson
Confreaks
46K views • 7 years ago
16:12Ruby on Rails demo
tenthconcept
428K views • 21 years ago
40:27"Finding bugs without running or even looking at code" by Jay Parlar
Strange Loop Conference
42K views • 7 years ago
43:04"Stop Writing Dead Programs" by Jack Rusher (Strange Loop 2022)
Strange Loop Conference
468K views • 4 years ago
40:01Keynote - Preventing, Finding, and Fixing Bugs On a Time Budget | Raymond Hettinger @ PyBay2018
SF Python
27K views • 8 years ago
47:17John Hughes - Testing the Hard Stuff and Staying Sane
ClojureTV
39K views • 12 years ago
5 comments from Hacker News
Not always before, but always eventually and usually once I’m done with “exploration”. Testing done right should be a time saver in the long run! I think many people are turned off by testing and especially unit testing because it ends up being difficult and maintenance is more of a pain than it’s worth. There are many good strategies to make it easier that in my experience have yet to be well adopted: ▶ this video link
There are some really fantastic testing resources in the Ruby community. The talk that most influenced my approach to building unit tests (even though I write Go these days) was one of Jim Weirich’s: link I’ve found that his zero-knowledge approach gives me a suite of tests that have high signal when they fail. Sandi Metz has also spoken extensively on testing, and I particularly like her advice on using mocks in tests appropriately. This talk of hers on the subject comes to mind: ▶ this video
I spend about 30% of my time on a new feature writing tests. BTW that is in RoR which the primary language I code in. I would recommend watching this video by Sandi Matz on testing: ▶ this video . I have used this methodology a lot to determine what I should test.
Shout out for Sandi Metz book POODR, and her Railsconf talk The Magic Tricks of Testing, if you're a rubyist (though the principles hold true for non-ruby OO programmers too). ▶ this video
What I wish people had told me about testing: * You write tests in accordance with a pattern: 1. Arrange 2. Act 3. Assert 4. Annihilate If you annihilate your test data with configuration options, and you abstract your "arranging" into factories and custom methods, then every test you write should be exactly three lines. When I learned this it gave me a consistent mental framework to think about how to write good tests. * Test the interface not the implementation: This was an eye opening realization about what to test. If you haven't seen it yet, watch Sandi Metz' incredible RailsConf talk - ▶ this video - it's so good * Stubs: Stubs are exactly like the viruses' that we learned about in biology class. You load them up with a value then they literally latch onto a method and inject that value into it. When you're just starting out with testing, effective use of stubs can get you really far, and only when you start hitting the limits of practicality is when you need to think about bringing in something more complicated. * Testing isn't easy per se, but it is definitely enjoyable if you focus on making it that way * Cucumber is pretty stupid, don't waste your time with it