Doing frequent and comprehensive unit testing of your code is best practice. Having repeatable (and automated) tests to use for regression testing after changes is also best practice. A style of development, called test-driven development, emphasizes creating all test cases before any code under test is created.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Go Unit Tests and Benchmarks

  • Barry A. Feigenbaum

摘要

Doing frequent and comprehensive unit testing of your code is best practice. Having repeatable (and automated) tests to use for regression testing after changes is also best practice. A style of development, called test-driven development, emphasizes creating all test cases before any code under test is created.