<?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>Forem: Manoj Kiran</title>
    <description>The latest articles on Forem by Manoj Kiran (@manoj_kiran_4ff6ecaa902bd).</description>
    <link>https://forem.com/manoj_kiran_4ff6ecaa902bd</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%2F3669628%2F9b89e7e0-03cb-4a2d-9ece-7cf87da866af.png</url>
      <title>Forem: Manoj Kiran</title>
      <link>https://forem.com/manoj_kiran_4ff6ecaa902bd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/manoj_kiran_4ff6ecaa902bd"/>
    <language>en</language>
    <item>
      <title>Debugging a Failing Test Entirely from the Terminal with GitHub Copilot CLI</title>
      <dc:creator>Manoj Kiran</dc:creator>
      <pubDate>Sat, 31 Jan 2026 04:10:01 +0000</pubDate>
      <link>https://forem.com/manoj_kiran_4ff6ecaa902bd/debugging-a-failing-test-entirely-from-the-terminal-with-github-copilot-cli-447a</link>
      <guid>https://forem.com/manoj_kiran_4ff6ecaa902bd/debugging-a-failing-test-entirely-from-the-terminal-with-github-copilot-cli-447a</guid>
      <description>&lt;p&gt;&lt;strong&gt;This is a submission for the GitHub Copilot CLI Challenge&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I Built&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;I built DevFlow, a minimal TypeScript + Node.js project designed to demonstrate a terminal-first debugging workflow using GitHub Copilot CLI.&lt;/p&gt;

&lt;p&gt;The project intentionally includes a failing unit test. Using natural language prompts in the terminal, I asked Copilot CLI to diagnose the failure, explain the root cause, apply a precise fix, and verify the solution — all without opening an editor.&lt;/p&gt;

&lt;p&gt;The goal of this project is not application complexity, but to showcase how GitHub Copilot CLI accelerates real debugging workflows directly from the command line.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/kiran797979/devflow" rel="noopener noreferrer"&gt;Repository&lt;/a&gt;&lt;br&gt;&lt;br&gt;
&lt;a href="https://github.com/kiran797979/devflow/pull/1" rel="noopener noreferrer"&gt;Demo Pull Request&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Team&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a class="mentioned-user" href="https://dev.to/manoj_kiran_4ff6ecaa902bd"&gt;@manoj_kiran_4ff6ecaa902bd&lt;/a&gt;  (submission author)&lt;/p&gt;

&lt;p&gt;&lt;a class="mentioned-user" href="https://dev.to/kondam_aishwarya_6e02608e"&gt;@kondam_aishwarya_6e02608e&lt;/a&gt;  (teammate)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Below is the full terminal-based demo showing how GitHub Copilot CLI was used end-to-end: from detecting a failing test to fixing it and validating the result.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04la1z9b9b96la5x1eqy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F04la1z9b9b96la5x1eqy.png" alt=" " width="800" height="474"&gt;&lt;/a&gt;&lt;br&gt;
Initial execution of npm test in Windows PowerShell showing a failing unit test. The test sum function adds two numbers fails because the expected value is incorrectly set to 5 while the actual result is 4. This failure is intentional and serves as the starting point for the Copilot CLI debugging demo.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqdxq795ukm8zh9t3fp5z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqdxq795ukm8zh9t3fp5z.png" alt=" " width="800" height="475"&gt;&lt;/a&gt;&lt;br&gt;
GitHub Copilot CLI launched inside Windows PowerShell using the copilot command. Copilot initializes and requests folder trust before interacting with the project files.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz9m540mtigs729ilzft5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz9m540mtigs729ilzft5.png" alt=" " width="800" height="309"&gt;&lt;/a&gt;&lt;br&gt;
A natural-language prompt is issued to Copilot CLI: “diagnose why npm test is failing”. Copilot begins inspecting the project configuration and test files to understand the failure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyplhkj1brb9jpt0j0viy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyplhkj1brb9jpt0j0viy.png" alt=" " width="800" height="475"&gt;&lt;/a&gt;&lt;br&gt;
Copilot CLI analyzes the test files and clearly identifies the root cause: the test in tests/failing.test.ts expects sum(2, 2) to equal 5, which is logically incorrect. Copilot explains the issue in plain English before suggesting a fix.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F16gvuphitt8injaf9sxj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F16gvuphitt8injaf9sxj.png" alt=" " width="800" height="477"&gt;&lt;/a&gt;&lt;br&gt;
Copilot CLI applies a minimal and precise edit to the codebase, changing the expected value in the failing test from 5 to 4. The terminal output shows the exact file modified and the line change, making the fix fully transparent.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx9y1byx903n4lav19i22.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx9y1byx903n4lav19i22.png" alt=" " width="800" height="467"&gt;&lt;/a&gt;&lt;br&gt;
Despite an environment limitation (PowerShell 6+ not installed), Copilot CLI successfully completes the analysis and fix. This demonstrates Copilot CLI’s resilience and usefulness even in constrained environments.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F21vldu7s32r259a3p29k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F21vldu7s32r259a3p29k.png" alt=" " width="678" height="371"&gt;&lt;/a&gt;&lt;br&gt;
Re-running npm test after Copilot’s fix shows all tests passing successfully. This confirms that the Copilot-generated change resolved the issue correctly and the project is now in a healthy state.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;My Experience with GitHub Copilot CLI&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Using GitHub Copilot CLI felt like having a debugging partner directly inside the terminal.&lt;br&gt;
Instead of manually scanning test files and logs, I simply described the problem in natural language. Copilot CLI quickly located the issue, explained the reasoning behind the failure, and applied a safe, minimal fix.&lt;br&gt;
What stood out most:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Natural-language debugging without leaving the terminal&lt;/li&gt;
&lt;li&gt;Clear explanations, not just code changes&lt;/li&gt;
&lt;li&gt;Minimal, auditable edits ideal for PRs and reviews&lt;/li&gt;
&lt;li&gt;Terminal-first workflow that fits real developer habits&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I used GitHub Copilot CLI to diagnose, fix, and verify a failing test entirely from the terminal using natural language.&lt;/p&gt;

&lt;p&gt;This experience showed how GitHub Copilot CLI can significantly reduce debugging time while keeping developers in control.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
      <category>cli</category>
      <category>githubcopilot</category>
    </item>
  </channel>
</rss>
