<?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 Matus Stafura</title>
    <link>https://stafura.dev/tags/testing/</link>
    <description>Recent content in Testing on Matus Stafura</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sat, 25 Oct 2025 12:55:12 +0200</lastBuildDate>
    <atom:link href="https://stafura.dev/tags/testing/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Bash Script Testing with Bats: Complete Beginner&#39;s Guide</title>
      <link>https://stafura.dev/bash-script-testing-with-bats/</link>
      <pubDate>Sat, 25 Oct 2025 12:55:12 +0200</pubDate>
      <guid>https://stafura.dev/bash-script-testing-with-bats/</guid>
      <description>&lt;p&gt;One of the pillars of programming is testing the code. Most of the time, I wrote simple bash scripts without tests(bruh, but why waste time writing tests for couple of lines, right?).&lt;/p&gt;&#xA;&lt;p&gt;But recently I started developing a Go app with bash support, so it&amp;rsquo;s time to explore testing suites for bash.&lt;/p&gt;&#xA;&lt;p&gt;&#xA;&#xA;&#xA;&lt;picture&gt;&#xA;    &#xA;      &#xA;&#xA;      &#xA;&#xA;      &#xA;      &#xA;&#xA;      &lt;source srcset=&#34;https://stafura.dev/images/blog/aa4xi5.webp&#34; type=&#34;image/webp&#34;&gt;&#xA;&#xA;    &#xA;&#xA;    &#xA;&#xA;    &lt;img&#xA;      src=&#34;https://stafura.dev/images/blog/aa4xi5.jpg&#34;&#xA;      alt=&#34;Bats Logo&#34;&#xA;      loading=&#34;lazy&#34;&#xA;      decoding=&#34;async&#34;&#xA;      width=&#34;623&#34;&#xA;      height=&#34;401&#34;&#xA;    /&gt;&#xA;&#xA;    &#xA;  &lt;/picture&gt;&#xA;&#xA;&lt;/p&gt;&#xA;&lt;p&gt;I found BATS (Bash Automated Testing System) and I think I don&amp;rsquo;t need to look further. It is simple to understand, with support for assertions, custom helpers, and more.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
