2 ms·
" it's impossible to write a test without an interface to call into, after all" This is not at all what pure 'test first' has even been described as to me. Yo
by mgkimsal 14y ago
" it's impossible to write a test without an interface to call into, after all"
This is not at all what pure 'test first' has even been described as to me. You'd write a test - run it to watch it fail - then write the code to make the test pass. Whether that code is interface/ui/logic/whatever shouldn't make any difference.
http://en.wikipedia.org/wiki/Test-driven_development#Test-driven_development_cycle http://en.wikipedia.org/wiki/Test-driven_development#Test-dr...
"In test-driven development, each new feature begins with writing a test. This test must inevitably fail because it is written before the feature has been implemented."
EDIT:
"Test-driven development is difficult to use in situations where full functional tests are required to determine success or failure. Examples of these are user interfaces... "
The TDD article on wikipedia is seeming to confirm that TDD for UI is hard (or is at least a shortcoming of a TDD approach).