<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom" xml:base="https://docs.spec-kitty.ai/development/testing/">
  <id>https://docs.spec-kitty.ai/development/testing/</id>
  <title>Testing the Spec Kitty codebase</title>
  <updated>2026-10-22T00:00:00.000Z</updated>
  <author><name>Spec Kitty</name></author>
  <link rel="alternate" type="text/html" href="https://docs.spec-kitty.ai/development/testing/"/>
  <summary>How to run and write tests against the Spec Kitty codebase — the flakiness policy, parallel runs, local mutation testing, Playwright UI e2e, and time-dependent test discipline.</summary>
  <content type="html">&lt;span id=&quot;testing-the-spec-kitty-codebase&quot;&gt;&lt;/span&gt;
&lt;p&gt;Everything about running the suite and writing tests that stay honest: the
never-retry-to-green flakiness policy, the one correct parallel-run command,
local mutation testing, browser regressions, and time-dependent test discipline.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/development/testing/acceptance-scenarios/&quot;&gt;CLI acceptance scenarios&lt;/a&gt; — Gherkin scenarios run nightly against the built CLI on three operating systems.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/development/testing/test-pyramid-rebalance/&quot;&gt;Test-pyramid rebalance plan&lt;/a&gt; — which layer a test belongs in, and how integration and e2e coverage moves into the scenarios.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/development/testing/integration-e2e-inventory/&quot;&gt;Integration and e2e test inventory&lt;/a&gt; — the 2026-10-15 per-file audit behind the plan.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/development/testing/testing-flakiness/&quot;&gt;Test-flakiness handling policy&lt;/a&gt; — detection tiers and the never-retry-to-green rule.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/development/testing/testing-parallel/&quot;&gt;Running the test suite in parallel&lt;/a&gt; — the parallel-run workflow and volume gates.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/development/testing/run-mutation-tests/&quot;&gt;Run mutation tests locally&lt;/a&gt; — &lt;code dir=&quot;auto&quot;&gt;mutmut&lt;/code&gt;-based assertion-quality checks.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/development/testing/ui-e2e/&quot;&gt;UI end-to-end tests (Playwright)&lt;/a&gt; — the browser-regression pattern (its dashboard targets were removed with the bundled dashboard).&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/development/testing/write-time-dependent-tests/&quot;&gt;Write time-dependent tests&lt;/a&gt; — inject stable clocks; avoid wall-clock reads in assertions.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/development/testing/permission-denied-tests/&quot;&gt;Write permission-denied tests&lt;/a&gt; — inject &lt;code dir=&quot;auto&quot;&gt;PermissionError&lt;/code&gt; at the seam so a test gives the same verdict as root and as a regular user.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;see-also&quot;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;/development/&quot;&gt;Development home&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;/development/reference/coverage-signals/&quot;&gt;Coverage signals&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content>
</entry>
