{"id":41326,"date":"2023-10-05T23:27:04","date_gmt":"2023-10-05T15:27:04","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=41326"},"modified":"2023-10-05T23:27:04","modified_gmt":"2023-10-05T15:27:04","slug":"tsdlhc","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/41326.html","title":{"rendered":"TDD\u4e09\u5b9a\u5f8b\u597d\u5904"},"content":{"rendered":"

  TDD\uff08\u6d4b\u8bd5\u9a71\u52a8\u5f00\u53d1\uff09\u662f\u4e00\u79cd\u9762\u5411\u5bf9\u8c61\u7684\u8f6f\u4ef6\u5f00\u53d1\u65b9\u6cd5\uff0c\u5b83\u5f3a\u8c03\u7684\u662f\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u5148\u6784\u5efa\u6d4b\u8bd5\uff0c\u7136\u540e\u518d\u7f16\u5199\u4ee3\u7801\uff0c\u4ee5\u786e\u4fdd\u4ee3\u7801\u7b26\u5408\u9884\u671f\u7684\u884c\u4e3a\u3002TDD\u6709\u4e09\u4e2a\u5b9a\u5f8b\uff0c\u5206\u522b\u662f\u201c\u5feb\u901f\u53cd\u9988\u201d\u3001\u201c\u8d23\u4efb\u5206\u79bb\u201d\u548c\u201c\u53ef\u7ef4\u62a4\u6027\u201d\uff0c\u5b83\u4eec\u7684\u597d\u5904\u5982\u4e0b\uff1a<\/p>\n

\u5feb\u901f\u53cd\u9988<\/h2>\n

  \u5feb\u901f\u53cd\u9988\u662fTDD\u7684\u7b2c\u4e00\u4e2a\u5b9a\u5f8b\uff0c\u5b83\u5f3a\u8c03\u5728\u6bcf\u4e00\u6b21\u7f16\u5199\u4ee3\u7801\u540e\u90fd\u8981\u7acb\u5373\u8fdb\u884c\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u4ee3\u7801\u7684\u6b63\u786e\u6027\u3002\u8fd9\u6837\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5feb\u901f\u53d1\u73b0\u9519\u8bef\uff0c\u5e76\u53ca\u65f6\u7ea0\u6b63\uff0c\u4ece\u800c\u6709\u6548\u907f\u514d\u5927\u7684\u95ee\u9898\u51fa\u73b0\uff0c\u964d\u4f4e\u5f00\u53d1\u6210\u672c\u3002<\/p>\n

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

  \u5feb\u901f\u53cd\u9988\u7684\u5b9e\u65bd\u6709\u52a9\u4e8e\u63d0\u9ad8\u4ee3\u7801\u7684\u8d28\u91cf\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u53ca\u65f6\u53d1\u73b0\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\uff0c\u4ece\u800c\u6709\u6548\u907f\u514d\u5927\u7684\u95ee\u9898\u51fa\u73b0\u3002\u6b64\u5916\uff0c\u5feb\u901f\u53cd\u9988\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u5feb\u5730\u5b8c\u6210\u4efb\u52a1\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u66f4\u5feb\u5730\u53d1\u73b0\u95ee\u9898\uff0c\u4ece\u800c\u8282\u7701\u65f6\u95f4\u3002<\/p>\n

  \u63d0\u9ad8\u5f00\u53d1\u6548\u7387<\/h3>\n

  \u5feb\u901f\u53cd\u9988\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u53ca\u65f6\u53d1\u73b0\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\uff0c\u4ece\u800c\u6709\u6548\u907f\u514d\u5927\u7684\u95ee\u9898\u51fa\u73b0\u3002\u6b64\u5916\uff0c\u5feb\u901f\u53cd\u9988\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u5feb\u5730\u5b8c\u6210\u4efb\u52a1\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u66f4\u5feb\u5730\u53d1\u73b0\u95ee\u9898\uff0c\u4ece\u800c\u8282\u7701\u65f6\u95f4\u3002<\/p>\n

\u8d23\u4efb\u5206\u79bb<\/h2>\n

  TDD\u7684\u7b2c\u4e8c\u4e2a\u5b9a\u5f8b\u662f\u201c\u8d23\u4efb\u5206\u79bb\u201d\uff0c\u5373\u5c06\u6d4b\u8bd5\u548c\u4ee3\u7801\u5206\u79bb\u5f00\u6765\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u7ba1\u7406\u548c\u7ef4\u62a4\u4ee3\u7801\u3002\u8d23\u4efb\u5206\u79bb\u7684\u597d\u5904\u5982\u4e0b\uff1a<\/p>\n

  \u63d0\u9ad8\u53ef\u7ef4\u62a4\u6027<\/h3>\n

  \u8d23\u4efb\u5206\u79bb\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7ba1\u7406\u4ee3\u7801\uff0c\u5e76\u4e14\u53ef\u4ee5\u66f4\u5bb9\u6613\u5730\u7ef4\u62a4\u548c\u66f4\u65b0\u4ee3\u7801\u3002\u6b64\u5916\uff0c\u8d23\u4efb\u5206\u79bb\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u4ee3\u7801\uff0c\u4ece\u800c\u66f4\u5bb9\u6613\u5730\u627e\u5230\u9519\u8bef\u3002<\/p>\n

  \u63d0\u9ad8\u4ee3\u7801\u590d\u7528\u7387<\/h3>\n

  \u8d23\u4efb\u5206\u79bb\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u590d\u7528\u7387\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7ba1\u7406\u4ee3\u7801\uff0c\u5e76\u4e14\u53ef\u4ee5\u66f4\u5bb9\u6613\u5730\u590d\u7528\u4ee3\u7801\u3002\u6b64\u5916\uff0c\u8d23\u4efb\u5206\u79bb\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u597d\u5730\u7406\u89e3\u4ee3\u7801\uff0c\u4ece\u800c\u66f4\u5bb9\u6613\u5730\u627e\u5230\u9519\u8bef\u3002<\/p>\n

\u53ef\u7ef4\u62a4\u6027<\/h2>\n

  TDD\u7684\u7b2c\u4e09\u4e2a\u5b9a\u5f8b\u662f\u201c\u53ef\u7ef4\u62a4\u6027\u201d\uff0c\u5b83\u5f3a\u8c03\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u5e94\u8be5\u5c3d\u53ef\u80fd\u4f7f\u4ee3\u7801\u7ed3\u6784\u6e05\u6670\uff0c\u4ee5\u4fbf\u66f4\u5bb9\u6613\u7ef4\u62a4\u548c\u66f4\u65b0\u3002\u53ef\u7ef4\u62a4\u6027\u7684\u597d\u5904\u5982\u4e0b\uff1a<\/p>\n

  \u63d0\u9ad8\u5f00\u53d1\u6548\u7387<\/h3>\n

  \u53ef\u7ef4\u62a4\u6027\u53ef\u4ee5\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u5bb9\u6613\u5730\u7406\u89e3\u4ee3\u7801\uff0c\u4ece\u800c\u66f4\u5bb9\u6613\u5730\u627e\u5230\u9519\u8bef\u3002\u6b64\u5916\uff0c\u53ef\u7ef4\u62a4\u6027\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u5feb\u5730\u5b8c\u6210\u4efb\u52a1\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u66f4\u5feb\u5730\u53d1\u73b0\u95ee\u9898\uff0c\u4ece\u800c\u8282\u7701\u65f6\u95f4\u3002<\/p>\n

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

  \u53ef\u7ef4\u62a4\u6027\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u8d28\u91cf\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u5bb9\u6613\u5730\u7406\u89e3\u4ee3\u7801\uff0c\u4ece\u800c\u66f4\u5bb9\u6613\u5730\u627e\u5230\u9519\u8bef\u3002\u6b64\u5916\uff0c\u53ef\u7ef4\u62a4\u6027\u8fd8\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u5feb\u5730\u5b8c\u6210\u4efb\u52a1\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u66f4\u5feb\u5730\u53d1\u73b0\u95ee\u9898\uff0c\u4ece\u800c\u8282\u7701\u65f6\u95f4\u3002<\/p>\n

\u603b\u7ed3<\/h2>\n

  TDD\u7684\u4e09\u4e2a\u5b9a\u5f8b\uff0c\u5373\u201c\u5feb\u901f\u53cd\u9988\u201d\u3001\u201c\u8d23\u4efb\u5206\u79bb\u201d\u548c\u201c\u53ef\u7ef4\u62a4\u6027\u201d\uff0c\u90fd\u6709\u52a9\u4e8e\u63d0\u9ad8\u4ee3\u7801\u7684\u8d28\u91cf\u548c\u5f00\u53d1\u6548\u7387\uff0c\u4ece\u800c\u66f4\u6709\u6548\u5730\u5b8c\u6210\u4efb\u52a1\u3002<\/strong>\u56e0\u6b64\uff0cTDD\u662f\u4e00\u79cd\u6709\u6548\u7684\u8f6f\u4ef6\u5f00\u53d1\u65b9\u6cd5\uff0c\u5e94\u8be5\u5f97\u5230\u66f4\u591a\u7684\u91cd\u89c6\u548c\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

TDD\uff08\u6d4b\u8bd5\u9a71\u52a8\u5f00\u53d1\uff09\u662f\u4e00\u79cd\u9762\u5411\u5bf9\u8c61\u7684\u8f6f\u4ef6\u5f00\u53d1\u65b9\u6cd5\uff0c\u5b83\u5f3a\u8c03\u7684\u662f\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u5148\u6784\u5efa\u6d4b\u8bd5\uff0c\u7136\u540e\u518d\u7f16\u5199\u4ee3\u7801\uff0c\u4ee5\u786e\u4fdd\u4ee3\u7801\u7b26\u5408\u9884\u671f\u7684\u884c\u4e3a\u3002TDD\u6709\u4e09\u4e2a\u5b9a\u5f8b\uff0c\u5206\u522b\u662f\u201c\u5feb\u901f\u53cd\u9988\u201d\u3001\u201c<\/p>\n","protected":false},"author":1,"featured_media":4132,"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-41326","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\/41326","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=41326"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/41326\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=41326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=41326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=41326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}