top | item 44295655

(no title)

susshshshah | 8 months ago

How do you know what tests to write if you don’t understand the code?

discuss

order

9rx|8 months ago

Same way you normally would? Tests are concerned with behaviour. The code that implements the behaviour is immaterial.

wiseowise|8 months ago

How do you do TDD without having code in the first place? How do QA verifies without reading the source?

adastra22|8 months ago

I’m not sure I understand this statement. You give your program parameters X and expect result Y, but instead get Z. There is your test, embedded in the problem statement.