タグ

2011年5月27日のブックマーク (2件)

  • Mistaeks I Hav Made: Allowing tests to drive development

    Good judgement is the result of experience ... Experience is the result of bad judgement. — Fred Brooks I have noticed teams who are new to TDD reach for ever more sophisticated tools to help them test their code rather than refactor their code to make it more testable. By doing so, they lose one of the major benefits of TDD: the feedback it gives on internal design quality. Code is difficult to t

    t-wada
    t-wada 2011/05/27
    誰の言葉だっけと探していたら Nat Pryce だった "Break dependencies in unit tests only with techniques that would be acceptable in the production code."
  • なぜUnitTestは理解されない?

    TwitterでこんなTweetが流れた… エビデンスとしてNUnitGUIのスクリーンショットと、対応するテストコードが含まれている部分のVSのスクリーンショットを取る作業が終りません・・・ UnitTestのエビデンスって…なに? 一般的にテストのエビデンスというと、次の2点を指す。 テスト手順を明らかにするもの(ex. テスト設計書、テスト仕様書、...) テスト結果の証拠(ex. 画面ハードコピー、DBスナップショット、...) UnitTestでは、これはこのように解釈できる。 テスト手順を明らかにするもの = テストコード テスト結果の証拠 = 今実行すればテストが全てグリーンになること これがなぜか理解されず、軋轢とストレスと大きな工数追加になっている現場がずいぶんある。 なぜUnitTestはいつまでも理解されないのだろう。 余談。これらのことは、Seleniumなどを使

    なぜUnitTestは理解されない?
    t-wada
    t-wada 2011/05/27
    素晴らしい。このエントリは評価されるべき