<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abhinav Chaturvedi</title>
    <description>The latest articles on DEV Community by Abhinav Chaturvedi (@abhinav_chaturvedi_f67faf).</description>
    <link>https://dev.to/abhinav_chaturvedi_f67faf</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3782836%2F453126a2-5fc3-4c86-a2df-90af7a0de7e7.png</url>
      <title>DEV Community: Abhinav Chaturvedi</title>
      <link>https://dev.to/abhinav_chaturvedi_f67faf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abhinav_chaturvedi_f67faf"/>
    <language>en</language>
    <item>
      <title>I Built a CLI That Auto-Fixes Failing Python Tests</title>
      <dc:creator>Abhinav Chaturvedi</dc:creator>
      <pubDate>Fri, 20 Feb 2026 15:50:22 +0000</pubDate>
      <link>https://dev.to/abhinav_chaturvedi_f67faf/i-built-a-cli-that-auto-fixes-failing-python-tests-545f</link>
      <guid>https://dev.to/abhinav_chaturvedi_f67faf/i-built-a-cli-that-auto-fixes-failing-python-tests-545f</guid>
      <description>&lt;p&gt;I built a CLI tool that analyzes pytest failures and proposes fixes automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Runs your test suite&lt;/li&gt;
&lt;li&gt;Analyzes failure patterns
&lt;/li&gt;
&lt;li&gt;Proposes a fix with diff preview&lt;/li&gt;
&lt;li&gt;You approve or reject&lt;/li&gt;
&lt;li&gt;Re-runs to verify no regressions&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;

&lt;/p&gt;
&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://drive.google.com/file/d/1Uv79v47-ZVC6xLv1TZL2cvEbUuLcy5FU/view?usp=drivesdk" rel="noopener noreferrer" class="c-link"&gt;
            VID-20260220-WA0000.mp4 - Google Drive
          &lt;/a&gt;
        &lt;/h2&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fssl.gstatic.com%2Fimages%2Fbranding%2Fproduct%2F1x%2Fdrive_2020q4_32dp.png"&gt;
          drive.google.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;




&lt;h2&gt;
  
  
  Current Approach
&lt;/h2&gt;

&lt;p&gt;Right now it's mostly pattern-based - analyzes pytest output and looks for common bugs like wrong operators, flipped logic, off-by-one errors.&lt;/p&gt;

&lt;p&gt;There's an LLM fallback for trickier cases, but the core is deterministic to keep it predictable and safe.&lt;/p&gt;

&lt;p&gt;The goal is to automate the test → fix → validate loop, not just explain errors like ChatGPT would.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's Next
&lt;/h2&gt;

&lt;p&gt;Looking to handle more complex failure patterns and improve the global optimization approach (scoring multiple candidate fixes across the full test suite).&lt;/p&gt;

&lt;p&gt;Also looking for beta testers - DM me if you want to try it on a real project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Feedback Welcome
&lt;/h2&gt;

&lt;p&gt;What kind of test failures would you find most useful to auto-fix?&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
**Publish it.**

---

### **2. Twitter Post**
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Built a CLI that auto-fixes failing Python tests 🐍&lt;/p&gt;

&lt;p&gt;Analyzes pytest output → proposes fix → shows diff → validates no regressions&lt;/p&gt;

&lt;p&gt;Demo: &lt;a href="https://drive.google.com/file/d/1Uv79v47-ZVC6xLv1TZL2cvEbUuLcy5FU/view?usp=drivesdk" rel="noopener noreferrer"&gt;https://drive.google.com/file/d/1Uv79v47-ZVC6xLv1TZL2cvEbUuLcy5FU/view?usp=drivesdk&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Pattern-based core + LLM fallback for edge cases&lt;/p&gt;

&lt;p&gt;Looking for beta testers. Thoughts?&lt;/p&gt;

&lt;h1&gt;
  
  
  Python #DevTools #Automation
&lt;/h1&gt;

</description>
      <category>automation</category>
      <category>python</category>
      <category>showdev</category>
      <category>testing</category>
    </item>
  </channel>
</rss>
