<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>软件测试 on 翟志军 Jack Zhai</title>
    <link>https://showme.codes/tags/%E8%BD%AF%E4%BB%B6%E6%B5%8B%E8%AF%95/</link>
    <description>Recent content in 软件测试 on 翟志军 Jack Zhai</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <copyright>showme.codes</copyright>
    <lastBuildDate>Tue, 10 Nov 2026 07:29:37 +0800</lastBuildDate>
    <atom:link href="https://showme.codes/tags/%E8%BD%AF%E4%BB%B6%E6%B5%8B%E8%AF%95/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>[译] Integration tests 是最好的测试</title>
      <link>https://showme.codes/zh-cn/integration-tests-are-best-tests/</link>
      <pubDate>Tue, 10 Nov 2026 07:29:37 +0800</pubDate>
      <guid>https://showme.codes/zh-cn/integration-tests-are-best-tests/</guid>
      <description>&lt;p&gt;原文：&lt;a href=&#34;https://jayconrod.com/posts/133/integration-tests-are-best-tests&#34;&gt;Integration tests are best tests&lt;/a&gt;&lt;br&gt;
作者：Jay Conrod · 原文发表于 2026-01-15。&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;作者简介&lt;/strong&gt;：&lt;a href=&#34;https://jayconrod.com/about&#34;&gt;Jay Conrod&lt;/a&gt; 是软件工程师，目前在 EngFlow 改进 Bazel 等构建系统的 remote builds 性能。他此前在 Google 的 Go 语言团队工作，参与过 Go modules、fuzzing、Bazel 支持和 command-line tools 的开发。&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;译注：文中的“我”指原作者，测试数量和工具的相关描述保留原文发表时的语境。&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;我想谈一个可能不太受欢迎的测试观点：integration tests 是最重要的一类测试。你应该尽量做好 integration test coverage，把相对少一些的时间花在 unit tests 上。自从参与 Go 的构建工具 &lt;code&gt;cmd/go&lt;/code&gt; 的开发以来，我就一直这么想。当时我们有一套很出色的 integration tests，写起来容易，跑得快，也能可靠地发现 regression。&lt;/p&gt;
&lt;p&gt;这个观点与通常的建议相反。大家一般认为，应该有充分的 unit test coverage、适量的 integration test coverage，再加上少量的 end-to-end test coverage。这通常被画成 &lt;em&gt;Testing Pyramid&lt;/em&gt;：&lt;/p&gt;
&lt;p&gt;&lt;img alt=&#34;传统的 Testing Pyramid：底层的 unit tests 最多，中层的 integration tests 次之，顶层的 end-to-end tests 最少&#34; loading=&#34;lazy&#34; src=&#34;https://showme.codes/images/integration-tests-are-best-tests/testing-pyramid-normal.svg&#34;&gt;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
