<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Testing on Krkn</title><link>https://krkn-chaos.dev/tags/testing/</link><description>Recent content in Testing on Krkn</description><generator>Hugo</generator><language>en</language><atom:link href="https://krkn-chaos.dev/tags/testing/index.xml" rel="self" type="application/rss+xml"/><item><title>Testing Changes</title><link>https://krkn-chaos.dev/docs/developers-guide/testing-changes/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://krkn-chaos.dev/docs/developers-guide/testing-changes/</guid><description>&lt;p>Test the behavior at the layer you changed, then verify the next integration
boundary. A correct Python method does not prove that its image can be
discovered or started by the operator.&lt;/p>
&lt;p>The &lt;a href="https://krkn-chaos.dev/docs/developers-guide/custom-scenario/">hands-on lab&lt;/a> supplies the concrete
build and run commands. Use this page when deciding what evidence a scenario
change needs before contribution.&lt;/p>
&lt;h2 id="testing-changes-in-krkn">
 Plugin and engine tests
 &lt;a class="td-heading-self-link" href="#testing-changes-in-krkn" aria-label="Heading self-link">&lt;/a>
&lt;/h2>
&lt;p>For the development scenario, cover:&lt;/p>
&lt;ul>
&lt;li>A valid configuration and an existing namespace, including one with no pods.&lt;/li>
&lt;li>A missing namespace and a Kubernetes API failure.&lt;/li>
&lt;li>Invalid &lt;code>wait&lt;/code> values: negative, above 60, fractional, boolean, or missing.&lt;/li>
&lt;li>Missing or invalid namespace values and unreadable or malformed YAML.&lt;/li>
&lt;li>The expected return code and useful error context for each failure.&lt;/li>
&lt;/ul>
&lt;p>Mock the sleep and cluster helper in unit tests so they remain fast and do not
depend on credentials. Verify externally meaningful behavior such as whether
pods are listed after a successful namespace check, rather than reproducing
the implementation&amp;rsquo;s internal steps in the test.&lt;/p></description></item></channel></rss>