タグ

ブックマーク / medium.com/@benbjohnson (1)

  • Structuring Tests in Go

    The Purpose of TestsPeople argue over testing style, whether to use TDD or BDD, or whether tests are even useful at all. Before I get into how I structure my tests in Go, I should explain how I see tests. Tests should be 2 things: Self-containedEasily reproducibleThat’s it. They should be self-contained so that changing one part of your test suite doesn’t drastically affect another part. They shou

    Structuring Tests in Go
    atotto
    atotto 2014/07/15
    テストフレームワークは使わない、_testパッケージを使う。
  • 1