Case Study: Adding Code Coverage Badge with GitAuto

submited by
Style Pass
2024-12-27 02:00:05

GitAuto shines when it comes to automated testing because it can analyze test failures and make fixes autonomously. Today, I want to share an interesting case where a customer had GitAuto continuously add automated tests. I thought it would be fun to demonstrate this in my repository too.

I decided to add a code coverage badge to the README.md file. The original issue was simply titled "Add code coverage ratio to README" - just a basic TODO-style note without detailed requirements.

This was spot on! I hadn't actually added badges to README files before, so I was curious to see how it would handle this. I proceeded to create a Codecov account, link this GitAuto open-source repository, and generate a token.

I initially thought the badge should go above the h1, but after checking other repositories, this placement is actually the standard practice. GitAuto was smarter than me here! 😅

Interestingly, GitAuto found the correct pytest workflow file without me specifying the path. It likely mimicked human behavior - scanning file names, opening promising ones, and confirming the content.

Leave a Comment