Reputation
3,127
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
8 22
Newest
 Enlightened
Impact
~268k people reached

Jul
1
revised What are the design principles that promote testable code? (designing testable code vs driving design through tests)
typos
Jul
1
answered Is testable code better code?
Jul
1
revised Is testable code better code?
typos
May
14
answered What factors should influence how I determine when to abandon a small project with a friend?
May
13
comment How would a new language look if it was designed from scratch to be easy to TDD?
It's purely a prototype. If it were to get real, then we would have to consider things like performance and size, but it's much to early to worry about that, and if we ever got to that point, it wouldn't be hard to choose what to leave out or, if desired, to leave the assertions out of compiled code. Thanks for your interest.
Apr
15
revised TDD Red-Green-Refactor and if/how to test methods that become private
its --> it's and introduced semicolons between independent clauses
Feb
5
comment How do you write tests for methods that interact with data in system files?
Could you parameterize [NSUserDefaults standardUserDefaults]? Make it something that can be set by the test, so what you're actually writing to, while testing, is some kind of mock?
Feb
4
awarded  Enlightened
Jan
29
awarded  Nice Answer
Jan
29
comment How to test a method which is not as much as a unit, because it is more of a 'orchestrator' / 'process' / 'controller' / 'coordination' class
At present you have a requirement that the email service is called, and your test verifies this requirement is satisfied. When you change the requirement so that a communication service, rather than an email service, must be called, then you need to update the test to reflect that.
Jan
29
comment How to test a method which is not as much as a unit, because it is more of a 'orchestrator' / 'process' / 'controller' / 'coordination' class
If you have mocked the email service, you should be testing your coordinator's collaboration with that service. So it is enough to know that your coordinator has requested that the email service send the desired messages. The mock email service will not actually send an email; that's not something you want to test as part of the coordinator's unit test.
Jan
29
answered How to test a method which is not as much as a unit, because it is more of a 'orchestrator' / 'process' / 'controller' / 'coordination' class
Jan
26
comment Test driven development workflow for two programmers
In your pair programming, you may want to experiment with the ping pong pattern; it is similar in some ways to what you initially asked about.
Jan
26
revised Test driven development workflow for two programmers
typos
Dec
29
revised TDD with repository pattern
it's --> its
Nov
21
awarded  Yearling
Nov
5
answered More appropriate to validate a dependency filter parameter by mock+stub or by expression compile?
Sep
12
answered What can be done when you are the only person to care about consistency?
Aug
15
awarded  Enlightened
Aug
15
awarded  Nice Answer