Close Menu
    Facebook LinkedIn YouTube WhatsApp X (Twitter) Pinterest
    Trending
    • Wisconsin sues prediction market platforms over alleged illegal sports betting operations
    • Final Fantasy 14 Hits Switch 2 in August With a New Subscription Twist
    • Three reasons why DeepSeek’s new model matters
    • Hest Foamy fully cushioned folding camp chair
    • Beatbot Pool-Cleaning Robots Are on Sale for a Limited Time
    • Why are top university websites serving porn? It comes down to shoddy housekeeping.
    • Today’s NYT Connections: Sports Edition Hints, Answers for April 25 #579
    • Yong Wang Turns Visualization Into Insights
    Facebook LinkedIn WhatsApp
    Times FeaturedTimes Featured
    Saturday, April 25
    • Home
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    • More
      • AI
      • Robotics
      • Industries
      • Global
    Times FeaturedTimes Featured
    Home»Artificial Intelligence»How to Improve Claude Code Performance with Automated Testing
    Artificial Intelligence

    How to Improve Claude Code Performance with Automated Testing

    Editor Times FeaturedBy Editor Times FeaturedApril 24, 2026No Comments11 Mins Read
    Facebook Twitter Pinterest Telegram LinkedIn Tumblr WhatsApp Email
    Share
    Facebook Twitter LinkedIn Pinterest Telegram Email WhatsApp Copy Link


    , Claude Code works fairly properly. You may enter a sequence of directions and have it produce code or different output for you. Nevertheless, there are some things you are able to do to vastly improve the efficiency of Claude Code, particularly in terms of programming.

    On this article, I’ll discuss in regards to the primary approach that I’m utilizing on daily basis to make my Claude Code a number of occasions simpler: automated / simpler testing.

    On the floor, this would possibly sound like a boring matter, however whenever you be taught extra about it, testing, particularly when automated or made simpler, is an effective way to avoid wasting a whole lot of time. If you can also make the agent take a look at its personal implementations, that can make it far simpler at producing the answer that you just needed to make.

    This infographic highlights the primary contents of this text. I’ll focus on how one can grow to be simpler with Claude Code by both automating testing or making guide testing simpler. Picture by ChatGPT

    Why automate testing

    The primary cause why it is best to automate testing is that it merely makes you far simpler. For those who can have an agent take a look at its personal implementations robotically, it’ll grow to be much better at really managing to implement the answer you describe in your immediate. In the end, this results in you saving a whole lot of time since you don’t must iterate with the agent a number of occasions to get the precise answer you need.

    Moreover, one other necessary level is that now that coding brokers have grow to be so efficient at producing code, the actual bottleneck with programming has grow to be testing. You should take a look at that the implementation really works in accordance with what you take note of. I discover that I spend most of my time programming, testing completely different options, and ensuring the whole lot is working as anticipated. If you can also make testing both simpler or utterly automated, that can thus clear up the most important bottleneck I’ve in programming, which is able to naturally make me far simpler.

    I imagine this is applicable to lots of people who actively use coding brokers to program, and I’m simply sharing how I each automate and make my testing simpler.

    Methods to automate testing

    I’ll speak about just a few elements with regard to testing. First, I’ll speak about automating testing, which is whenever you give your agent entry to run assessments itself. This may occur in many various methods. You may, for instance, give it testing scripts to run, unit assessments to run, or full-on integration assessments. Persevering with, I’ll focus on how you can make testing with people simpler. Typically it’s not doable for the coding agent to completely do the take a look at itself. Perhaps it requires particular context or permissions. Perhaps it’s a sophisticated motion inside a UI that you just don’t need the coding agent to do, or that the coding agent can’t do, and so forth.

    Agentic computerized testing

    Listed below are the three foremost steps for computerized testing:

    1. Be sure the agent has all of the permissions it wants
    2. Immediate the agent to arrange assessments and take a look at its implementations
    3. Be sure the assessments all the time run earlier than commits or merges, relying on whenever you need them to run.
    4. Guarantee all new code will get up to date assessments and generally take a guide take a look at the assessments to ensure they work and do what you suppose they do.

    I’ll begin by discussing how one can give the agent entry to working assessments. Crucial level you may be aware right here is that it is best to make it doable for the agent to run assessments. That is executed by giving it sufficient entry, for instance, possibly it wants AWS entry to entry information, or possibly it wants entry to the browser to navigate by means of the appliance. Thus, step one right here is to guarantee that the agent has all of the permissions it wants.

    In my expertise, you may run Claude Code with Dangerously Skip Permissions or Auto Mode, which was not too long ago launched, and it really works very properly. Sadly, when utilizing different coding brokers resembling Gemini or Chachipetee, I’ve not executed this but as a result of I even have some experiences the place the coding brokers have executed unintended actions that had been non-reversible. Nevertheless, this has by no means occurred after I used Claude’s fashions.

    The second a part of automated testing is just to immediate the agent to arrange assessments. For instance, I ask my mannequin to arrange integration assessments. Integration assessments are basically only a sequence of API calls that be sure that the movement by means of the appliance is as anticipated. And with coding brokers, this works rather well. For instance, have an LLM name that leads right into a parsing pipeline and so forth. You can also make the method deterministic and make sure the outcomes are right each time. Merely informing the agent to arrange integration assessments will work rather well; the mannequin will arrange the assessments and truly instantly work higher.

    You too can simply ask the mannequin to create testing scripts that take a look at an implementation and inform it that it ought to run that testing script to ensure the whole lot works as meant, and never cease till the testing script works efficiently. The final half is essential as a result of generally the fashions are literally a bit lazy, and you might want to explicitly inform them that they’re not allowed to cease earlier than the implementation is profitable. This, in fact, assumes that the implementation is feasible given the permissions and actions you’ve given to the coding agent.


    Persevering with, it’s additionally necessary that you just guarantee that these assessments run earlier than the code is pushed to manufacturing. You may run the take a look at as pre-commit hooks, although this could gradual you down generally as a result of the assessments must run earlier than each commit, and if the take a look at takes a while, then it’ll gradual you down. You too can make them run each time you will have a push, a brand new push to a pull request. I.e., if a pull request is up to date, then run integration assessments. These assessments can be a part of GitHub actions, for instance, so that they robotically run, and also you don’t must run them in your laptop. Nevertheless, in my expertise, it’s typically good to have these assessments in your laptop, because it makes it quicker and you may extra simply set off them.

    Lastly, on the automated testing part, I need to spotlight how you might want to just remember to always replace your assessments given new code that’s produced. For instance, for those who produce a brand new piece of code, be sure that so as to add new assessments for it. And for those who take away outdated code, be sure that to take away the corresponding assessments. It’s necessary to take care of the assessments in order that they’re efficient. Although this upkeep would possibly sound like additional work upfront, it’ll really prevent time in the long term since you’re not working pointless assessments, and also you’re making certain that each one your code is examined, which lowers the prospect of bugs.

    Moreover, I like to recommend that you just generally manually examine the assessments by actually trying on the enter and output and asking the agent to indicate you the outcomes. This guide inspection of assessments can generally be very efficient in making certain the take a look at works as anticipated and makes it straightforward to find bugs within the take a look at.

    Make guide testing simpler

    The second level on testing I need to cowl is making guide testing simpler. Once I speak about guide testing, I imply testing that requires a human to carry out it, and that may’t be executed by an AI. Sadly, some testing must be executed by you, and you may’t merely outsource it for an AI to do. This might occur due to a number of causes:

    • The duty is simply too sophisticated for the AI to carry out, and you might want to carry out it your self
    • The duty contains one thing the AI doesn’t have entry to or permission to. For instance, it requires admin entry that you just don’t need to give to your AI, or it makes use of audio that the AI doesn’t at present have entry to.
    • The duty is simply too sophisticated for the AI to carry out, and also you don’t belief it to carry out it appropriately.

    In these circumstances, the very best factor you are able to do is to make the testing simpler for your self. After all, your first intuition when producing assessments ought to all the time be to attempt to automate them absolutely so that you just don’t must ever contact them your self, and the AI all the time runs them robotically. Nevertheless, realistically, you might want to take a look at it so much your self as properly.

    My primary trick to make testing simpler is to make use of visible testing. For instance, if I’ve the AI clear up a whole lot of duties for me, I first make it create an HTML report consisting of every activity and a checkbox beside these duties so I can test off any duties which are set to executed. I additionally inform the AI to offer me with hyperlinks to the pages that comprise the content material I would like to check and the outline of precisely how I can take a look at that it really works. This simplifies the method so much as a result of I don’t have to recollect the whole lot I would like to check and how you can take a look at it. But it surely’s consciously offered to me in a report. You may see an instance of this beneath:

    Coding Agent Automated Checklist Reports.
    This screenshot highlights how I create a to-do guidelines of duties the coding agent has carried out. It contains each activity I have to confirm the correctness of, the title of the duty, the place to test the duty, and what to anticipate. It basically makes the whole lot as straightforward as doable for me, so I solely have to confirm correctness and don’t have to spend any cognitive power on anything. Sadly, I’ve to cover a few of the content material right here for privateness causes. Picture by the writer.

    One other level in how I make testing simpler is that I attempt to outsource as many duties as doable to the coding agent. For instance, if I would like specific information to check one thing manually, I don’t spend a whole lot of time manually in search of the information. I ask the coding agent to entry the required sources and discover me the information robotically.

    Conclusion

    On this article, I’ve mentioned how one can automate testing with Claude Code to grow to be far simpler with Claude Code or another coding agent that you just’re utilizing. I primarily mentioned how one can both automate testing, which is essentially the most preferable strategy, or you can also make guide testing simpler. When coding brokers have grow to be nearly as good as they’ve come, particularly after the discharge of the most recent Opus fashions, I imagine testing has grow to be the bottleneck. Whereas beforehand you spent essentially the most time manually writing code, you don’t spend that a lot time manually writing code anymore, and also you spend far more time testing the precise implementations. Thus, it is sensible to attempt to optimize the testing course of to make it simpler. To maximise your effectivity as a programmer, I’d undoubtedly concentrate on the testing half and take into consideration how one can grow to be simpler there. The methods I offered on this article are just a few examples of what I do personally to make testing simpler.

    👋 Get in Touch

    👉 My free eBook and Webinar:

    🚀 10x Your Engineering with LLMs (Free 3-Day Email Course)

    📚 Get my free Vision Language Models ebook

    💻 My webinar on Vision Language Models

    👉 Discover me on socials:

    💌 Substack

    🔗 LinkedIn

    🐦 X / Twitter

    Additionally, try my article on How to Maximize Claude Cowork.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Editor Times Featured
    • Website

    Related Posts

    Introduction to Approximate Solution Methods for Reinforcement Learning

    April 24, 2026

    I Built an AI Pipeline for Kindle Highlights

    April 24, 2026

    How to Select Variables Robustly in a Scoring Model

    April 24, 2026

    Your Synthetic Data Passed Every Test and Still Broke Your Model

    April 23, 2026

    Using a Local LLM as a Zero-Shot Classifier

    April 23, 2026

    I Simulated an International Supply Chain and Let OpenClaw Monitor It

    April 23, 2026
    Leave A Reply Cancel Reply

    Editors Picks

    Wisconsin sues prediction market platforms over alleged illegal sports betting operations

    April 25, 2026

    Final Fantasy 14 Hits Switch 2 in August With a New Subscription Twist

    April 25, 2026

    Three reasons why DeepSeek’s new model matters

    April 24, 2026

    Hest Foamy fully cushioned folding camp chair

    April 24, 2026
    Categories
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    About Us
    About Us

    Welcome to Times Featured, an AI-driven entrepreneurship growth engine that is transforming the future of work, bridging the digital divide and encouraging younger community inclusion in the 4th Industrial Revolution, and nurturing new market leaders.

    Empowering the growth of profiles, leaders, entrepreneurs businesses, and startups on international landscape.

    Asia-Middle East-Europe-North America-Australia-Africa

    Facebook LinkedIn WhatsApp
    Featured Picks

    This USAID Program Made Food Aid More Efficient for Decades. DOGE Gutted It Anyways

    February 19, 2025

    FanDuel launches new peer-to-peer fantasy sports app, FanDuel Picks

    August 29, 2025

    IEEE Spectrum’s Top Climate Tech Stories of 2025

    December 28, 2025
    Categories
    • Founders
    • Startups
    • Technology
    • Profiles
    • Entrepreneurs
    • Leaders
    • Students
    • VC Funds
    Copyright © 2024 Timesfeatured.com IP Limited. All Rights.
    • Privacy Policy
    • Disclaimer
    • Terms and Conditions
    • About us
    • Contact us

    Type above and press Enter to search. Press Esc to cancel.