andrewsardone + tdd   18

DHH tweet that strikes two rage punches
Insisting that the benefit of explicit types is comprehension with perf just a side effect, is like insisting TDD is about design not tests.


:sadface:
dhh  via:andyfowler  tdd  test  types 
june 2014 by andrewsardone
Test Isolation Is About Avoiding Mocks — Destroy All Software Blog
Gary Bernhardt's second post on the straw-men set up by those suggesting that isolated testing and/or “mocks” destroy your program’s design.
Deeply nested mocks tell us little about mocks, just as deeply nested conditionals tell us little about structured programming. Proficient users of structured programming rarely write deeply nested conditionals; proficient users of mocks rarely write deeply nested mocks.

For notes that directly apply to DHH, see GB’s [first post on TDD rhetoric][1].

[1]: https://www.destroyallsoftware.com/blog/2014/tdd-straw-men-and-rhetoric
mockobjects  OOP  goos  isolation  tdd  from instapaper
may 2014 by andrewsardone
Magic Tricks of Testing // Speaker Deck
A good run through of what one should be unit testing, making a distinction between command and query methods in the context of who's sending the message (incoming from outside, message to self, or outgoing message to collaborator).

The bookmark links to an easy grid to help keep these things straight.
tdd  bdd  testing 
april 2013 by andrewsardone
sgleadow/xcodetest · GitHub
Run Xcode project unit tests, including 'application' (not just 'logic') tests. It looks like it requires creating an entire scheme for your tests.
ios  tdd  bdd  cli 
january 2013 by andrewsardone
luisobo/Nocilla · GitHub
An HTTP stubbing tool for iOS, allowing you to fake HTTP responses for certain requests. It intelligently creates and manages concrete NSURLProtocol instances for you to return your fake responses for your requests.
cocoa  objective-c  testing  tdd  http  tools 
november 2012 by andrewsardone
petejkim/expecta
A Matcher Framework for Objective-C/Cocoa

I'm not sure if this should be used in conjunction with Kiwi or instead of Kiwi combined with some other tool (specta, cedar, OCUnit, etc.).

A simple example spec-ing a CGRectDivide macro: https://gist.github.com/3897415
tdd  bdd  ios  objective-c 
october 2012 by andrewsardone
petejkim/specta
A light-weight TDD / BDD framework for Objective-C & Cocoa.

- No built-in mocking – should use OCMock/LRMocky
- Can use OCUnit assertions/matchers, but should probably be combined with something like Expecta or OCHamcrest
ios  bdd  tdd  objective-c 
october 2012 by andrewsardone
Myron Marston » RSpec's New Expectation Syntax
foo.should == bar
# vs.
expect(foo).to eq(bar)
rspec  syntax  ruby  bdd  tdd 
october 2012 by andrewsardone
Refactoring in Practice: Speeding up Your Rails Tests | Nate Klaiber
a good overview of extracting some logic from a bloated ActiveRecord::Base object.
rails  oop  tdd  srp 
september 2012 by andrewsardone

Copy this bookmark:



description:


tags: