{"id":60554,"date":"2023-11-02T00:04:20","date_gmt":"2023-11-01T16:04:20","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=60554"},"modified":"2023-11-02T00:04:20","modified_gmt":"2023-11-01T16:04:20","slug":"tsmys","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/60554.html","title":{"rendered":"41TDD\u4ec0\u4e48\u610f\u601d\uff1f"},"content":{"rendered":"

  41TDD\u662f\u4e00\u4e2a\u6280\u672f\u672f\u8bed\uff0c\u8868\u793aTest-Driven Development\uff08\u6d4b\u8bd5\u9a71\u52a8\u5f00\u53d1\uff09\u7684\u7f29\u5199\u3002\u5b83\u662f\u4e00\u79cd\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\uff0c\u5b83\u8981\u6c42\u5728\u7f16\u5199\u4ee3\u7801\u4e4b\u524d\uff0c\u5148\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\u3002\u5f00\u53d1\u8005\u5fc5\u987b\u6309\u7167\u6d4b\u8bd5\u7528\u4f8b\u7f16\u5199\u4ee3\u7801\uff0c\u4ee5\u786e\u4fdd\u5b83\u4eec\u6ee1\u8db3\u6240\u6709\u6d4b\u8bd5\u8981\u6c42\u3002<\/p>\n

41TDD\u7684\u4f18\u52bf<\/h2>\n

  1. \u63d0\u9ad8\u4ee3\u7801\u8d28\u91cf<\/h3>\n

  \u6d4b\u8bd5\u9a71\u52a8\u5f00\u53d1\u7684\u6700\u5927\u4f18\u52bf\u4e4b\u4e00\u662f\uff0c\u5b83\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u8d28\u91cf\u3002\u901a\u8fc7\u5728\u7f16\u5199\u4ee3\u7801\u4e4b\u524d\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\uff0c\u53ef\u4ee5\u786e\u4fdd\u4ee3\u7801\u6ee1\u8db3\u6240\u6709\u6d4b\u8bd5\u8981\u6c42\uff0c\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u4ee3\u7801\u7684\u6b63\u786e\u6027\u548c\u53ef\u9760\u6027\u3002<\/p>\n

  2. \u66f4\u5feb\u7684\u5f00\u53d1\u5468\u671f<\/h3>\n

  \u6d4b\u8bd5\u9a71\u52a8\u5f00\u53d1\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u66f4\u5feb\u5730\u5f00\u53d1\u51fa\u9ad8\u8d28\u91cf\u7684\u4ee3\u7801\u3002\u7531\u4e8e\u5728\u7f16\u5199\u4ee3\u7801\u4e4b\u524d\uff0c\u5f00\u53d1\u4eba\u5458\u5df2\u7ecf\u7f16\u5199\u4e86\u6d4b\u8bd5\u7528\u4f8b\uff0c\u56e0\u6b64\u4ed6\u4eec\u53ef\u4ee5\u66f4\u5feb\u5730\u7f16\u5199\u51fa\u6ee1\u8db3\u6240\u6709\u6d4b\u8bd5\u8981\u6c42\u7684\u4ee3\u7801\u3002<\/p>\n

  3. \u66f4\u597d\u7684\u53ef\u7ef4\u62a4\u6027<\/h3>\n

  \u6d4b\u8bd5\u9a71\u52a8\u5f00\u53d1\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u4eba\u5458\u7f16\u5199\u51fa\u66f4\u53ef\u7ef4\u62a4\u7684\u4ee3\u7801\u3002\u7531\u4e8e\u5f00\u53d1\u4eba\u5458\u5728\u7f16\u5199\u4ee3\u7801\u4e4b\u524d\uff0c\u5df2\u7ecf\u7f16\u5199\u4e86\u6d4b\u8bd5\u7528\u4f8b\uff0c\u56e0\u6b64\u4ed6\u4eec\u53ef\u4ee5\u66f4\u5bb9\u6613\u5730\u66f4\u6539\u4ee3\u7801\uff0c\u800c\u4e0d\u4f1a\u7834\u574f\u539f\u6709\u7684\u529f\u80fd\u3002<\/p>\n

41TDD\u7684\u7f3a\u70b9<\/h2>\n

  1. \u65f6\u95f4\u6210\u672c\u9ad8<\/h3>\n

  \u6d4b\u8bd5\u9a71\u52a8\u5f00\u53d1\u7684\u6700\u5927\u7f3a\u70b9\u4e4b\u4e00\u662f\uff0c\u5b83\u7684\u65f6\u95f4\u6210\u672c\u5f88\u9ad8\u3002\u5728\u7f16\u5199\u4ee3\u7801\u4e4b\u524d\uff0c\u5f00\u53d1\u4eba\u5458\u9700\u8981\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\uff0c\u8fd9\u9700\u8981\u82b1\u8d39\u5927\u91cf\u7684\u65f6\u95f4\u3002<\/p>\n

  2. \u6280\u672f\u96be\u5ea6\u8f83\u9ad8<\/h3>\n

  \u6d4b\u8bd5\u9a71\u52a8\u5f00\u53d1\u7684\u53e6\u4e00\u4e2a\u7f3a\u70b9\u662f\uff0c\u5b83\u7684\u6280\u672f\u96be\u5ea6\u8f83\u9ad8\u3002\u5f00\u53d1\u4eba\u5458\u9700\u8981\u4e86\u89e3\u5982\u4f55\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\uff0c\u5e76\u7406\u89e3\u5982\u4f55\u8ba9\u4ee3\u7801\u6ee1\u8db3\u6d4b\u8bd5\u8981\u6c42\uff0c\u8fd9\u9700\u8981\u4e00\u5b9a\u7684\u6280\u672f\u6280\u80fd\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  41TDD\u662fTest-Driven Development\uff08\u6d4b\u8bd5\u9a71\u52a8\u5f00\u53d1\uff09\u7684\u7f29\u5199\uff0c\u5b83\u662f\u4e00\u79cd\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\uff0c\u5b83\u8981\u6c42\u5728\u7f16\u5199\u4ee3\u7801\u4e4b\u524d\uff0c\u5148\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\u3002<\/strong>\u5b83\u7684\u4f18\u52bf\u5305\u62ec\u63d0\u9ad8\u4ee3\u7801\u8d28\u91cf\u3001\u66f4\u5feb\u7684\u5f00\u53d1\u5468\u671f\u548c\u66f4\u597d\u7684\u53ef\u7ef4\u62a4\u6027\uff0c\u4f46\u5b83\u4e5f\u6709\u4e00\u4e9b\u7f3a\u70b9\uff0c\u5305\u62ec\u65f6\u95f4\u6210\u672c\u9ad8\u548c\u6280\u672f\u96be\u5ea6\u8f83\u9ad8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

41TDD\u662f\u4e00\u4e2a\u6280\u672f\u672f\u8bed\uff0c\u8868\u793aTest-DrivenDevelopment\uff08\u6d4b\u8bd5\u9a71\u52a8\u5f00\u53d1\uff09\u7684\u7f29\u5199\u3002\u5b83\u662f\u4e00\u79cd\u8f6f\u4ef6\u5f00\u53d1\u6280\u672f\uff0c\u5b83\u8981\u6c42\u5728\u7f16\u5199\u4ee3\u7801\u4e4b\u524d\uff0c\u5148\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\u3002\u5f00\u53d1\u8005\u5fc5\u987b<\/p>\n","protected":false},"author":1,"featured_media":1839,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-60554","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/60554","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=60554"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/60554\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/1839"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=60554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=60554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=60554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}