2 ms·
The HTML you wrote isn't part of the live code, it's part of the test. It's perfectly normal to write some sort of skeleton/dummy as part of writing your tests
by lmm 14y ago
The HTML you wrote isn't part of the live code, it's part of the test. It's perfectly normal to write some sort of skeleton/dummy as part of writing your tests - it's impossible to write a test without an interface to call into, after all.
- 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).