How Integration Tests reduce developer fatigue?

How Integration Tests reduce developer fatigue?

Some stakeholders who are not familiar with the value of unit and integration tests might not fully appreciate the peace of mind that it brings to the work of a programmer.? Below is a very simple example of how an integration test can take away the heavy lifting of checking whether our recent changes did not break something that was working before.

The code available here does the following: https://github.com/ansarmuhammad/GitHub_Copilot/blob/main/integration_test.py

1.????? Read from an excel file which has monthly critical code smells for various projects & modules

2.????? Identify whether the critical code smells are increasing or decreasing

3.????? Update the “comments” column

4.????? Write output to a timestamped excel file

We would like to write an integration test that would use a bench-marked excel file which would not change over time.? The integration test would tell us whether we broke anything that was working before.? As we make more changes to our main program to incorporate other business rules and validations, we can rest assured that the integration test will inform us if we have broken the logic for the initial part.

The two excel files used in the program can be downloaded here:

https://github.com/ansarmuhammad/GitHub_Copilot/blob/main/code_quality_test.xlsx

https://github.com/ansarmuhammad/GitHub_Copilot/blob/main/code_quality_integration_test.xlsx

Closing note:

Sometimes the strain of testing and retesting your recent changes creates a lot of fatigue that affects productivity throughout the day.? Unit tests and integration tests are helpful in taking that workload away.? Let the computer check your work ??!

Good news! GitHub Copilot is very good in this area...

要查看或添加评论,请登录

Ansar Muhammad, PMP, PSM-1的更多文章

  • How AI Assistants Help With Programming

    How AI Assistants Help With Programming

    There are many good high quality AI coding assistants available like GitHub Copilot, Cursor, Windsurf, etc. I recently…

  • Data Migration Strategy

    Data Migration Strategy

    A lot of companies treat data migration as an after thought. The new system is ready for GO LIVE but data migration…

    1 条评论
  • Building an AI Agent using a No-code tool

    Building an AI Agent using a No-code tool

    Wanted to show a very simple use case for people who don’t want to dabble in Python programming. There is a very decent…

    10 条评论
  • How LangChain can help you elegantly write an Agent!

    How LangChain can help you elegantly write an Agent!

    In this example, we will use LangChain help us write an elegant solution. I have intentionally taken a simple problem…

    3 条评论
  • Roundtable to discuss day zero employability of IT graduates

    Roundtable to discuss day zero employability of IT graduates

    Recently got a chance to participate in a Roundtable to discuss day zero employability of IT graduates at IBA. The…

    2 条评论
  • Join Us as a SME – USA Health Insurance! ??

    Join Us as a SME – USA Health Insurance! ??

    Are you passionate about transforming the health insurance domain with innovative software solutions? ?? Do you thrive…

  • AI Convergence Conference

    AI Convergence Conference

    It was a pleasure to speak at the conference! Met many interesting people, very nice to see a well executed AI…

    5 条评论
  • 3rd Code Quality Awards

    3rd Code Quality Awards

    “?? Celebrating Excellence in Code Quality Quarter 3 ?? Today, we come together to recognise and celebrate the…

  • Agile frameworks and MVP approaches

    Agile frameworks and MVP approaches

    Presenting Agile and MVP concepts to the receptive JazzCash team was a great experience! The way the training was…

    2 条评论
  • Using Machine Learning / Decision Trees to understand your data

    Using Machine Learning / Decision Trees to understand your data

    Sometimes it is hard to understand your data without the help of some Machine Learning tools, one very useful open…

    1 条评论

社区洞察

其他会员也浏览了