Sandi Metz - Magic Tricks of Testing - Ancient City Ruby 2013

  Рет қаралды 9,824

Hashrocket

Hashrocket

Күн бұрын

Пікірлер: 4
@margaritaville32
@margaritaville32 10 жыл бұрын
I'm learning Rails testing and this helped a lot. The speaker does a great job explaining not only the "how" but the "why" behind the testing strategies used. Thanks!
@instarkecontrast
@instarkecontrast 10 жыл бұрын
Sandi Metz @26:28 in the talk you give the caveat that if a collaborator/side effect is cheap/near, that it is "ok" to use the collaborator and validate the side effect directly rather than mocking and expecting an outgoing message. Does that not "bake in" a point of fragility in your tests, because it assumes that the collaborator/side effect will always be cheap/near? What if a future refactoring or feature request increases the cost of using that collaborator and/or pushes that side effect further away? Suddenly that test, with those baked in assumptions/knowledge of the system, is at best slower, and at worst, now proves something that you did not intend (either a true negative, or a false positive). Is it not safer just to isolate by mocking and setting expectations on the outbound message? As you demonstrated in an "Omega Mess" scenario (another great talk, btw.) that Omega Messes don't always stay that way... occasionally they're split or refactored, and part(s) of the mess are moved down the call graph and abstracted behind another boundary. I just seems from a stability point of view, that isolating is the safest bet, rather than relying on tests that straddle the boundary between unit (isolated) and integrated tests. Thoughts?
@WolfgangRiebeInspiringTheWorld
@WolfgangRiebeInspiringTheWorld 8 жыл бұрын
always fantastic to be remain positive
@tr233
@tr233 4 жыл бұрын
Even if its Ruby the talk is great!
Ben Orenstein - Live Coding with Ben - Ancient City Ruby 2013
47:13
Rails Conf 2013 The Magic Tricks of Testing by Sandi Metz
32:23
Confreaks
Рет қаралды 128 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
KRW 2015 - Keynote by Sandi Metz
41:43
Confreaks
Рет қаралды 7 М.
hafentalks #7 - Sandi Metz: "Go Ahead, Make a Mess"
40:01
InVision AG
Рет қаралды 13 М.
Full Stack Fest 2015: Nothing is Something, by Sandi Metz
41:34
Avdi Grimm - Pairing is Caring - Ancient City Ruby 2013
29:29
Hashrocket
Рет қаралды 2,8 М.
Sandi Metz - Talk Session: Polly Want a Message
41:22
Explore DDD
Рет қаралды 19 М.
Steve Klabnik - Using Rust with Ruby - Ancient City Ruby 2016
36:03
Ruby on Ales 2014 All The Little Things by Sandi Metz
39:30
Confreaks
Рет қаралды 4,7 М.
Why Your Brain Sabotages Your Goals (and How to Fix It)
11:56
Productive Peter
Рет қаралды 21 М.
When Optimisations Work, But for the Wrong Reasons
22:19
SimonDev
Рет қаралды 1,1 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН