<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>テストの落とし穴 on 白と黒</title><link>https://chillfixx.work/series/%E3%83%86%E3%82%B9%E3%83%88%E3%81%AE%E8%90%BD%E3%81%A8%E3%81%97%E7%A9%B4/</link><description>Recent content in テストの落とし穴 on 白と黒</description><generator>Hugo</generator><language>ja</language><lastBuildDate>Sat, 24 Oct 2026 13:00:00 +0900</lastBuildDate><atom:link href="https://chillfixx.work/series/%E3%83%86%E3%82%B9%E3%83%88%E3%81%AE%E8%90%BD%E3%81%A8%E3%81%97%E7%A9%B4/index.xml" rel="self" type="application/rss+xml"/><item><title>テストもCIも緑なのに壊れた実装を通す穴</title><link>https://chillfixx.work/blog/tests-green-but-broken/</link><pubDate>Sat, 24 Oct 2026 13:00:00 +0900</pubDate><guid>https://chillfixx.work/blog/tests-green-but-broken/</guid><description>&lt;h2 id="はじめに-緑は守れているの証拠にならない"&gt;はじめに: 緑は「守れている」の証拠にならない&lt;/h2&gt;
&lt;figure&gt;
 &lt;video class="w-full rounded-2xl" src="https://chillfixx.work/blog/tests-green-but-broken/overview.mp4" poster="/blog/tests-green-but-broken/overview.webp" width="1200" height="675" data-motion loop muted playsinline preload="none" aria-label="実装の順序の入れ替え、0 件の確認、本物と違う偽物や期待値、走っていない CI の job の 4 つの場面で、テストは緑のまま壊れた実装を通した"&gt;&lt;/video&gt;
 &lt;figcaption&gt;実装の順序の入れ替え、0 件の確認、本物と違う偽物や期待値、走っていない CI の job の 4 つの場面で、テストは緑のまま壊れた実装を通した&lt;/figcaption&gt;
&lt;/figure&gt;

&lt;p&gt;テストを足して、CI も緑になった。ところがレビューで実装をわざと壊してみると、テストはそれでも緑だった。筆者はこの 1 週間で、Go・Terraform・bash・GitHub Actions のそれぞれでこれを踏んだ。&lt;/p&gt;</description></item></channel></rss>