Top 5 Badges That Will Show Your GitHub Repository is Well Tested & Trusted
Tags: devops, github, cloud, cicd
Published: 2022-09-12 13:36:09

Using badges in your Github repositories is a great visual way to attract people. Some badges are meaningful and productive to make use of, they boost the readability of your readme files.

Visitors of your repositories can capture the  _“important metrics that you decide”_  instantly. To help you decide about the important metrics, I gathered the top five badges to support your GitHub repositories’ trustworthiness with regards to being well tested and trusted.

## 1. Snyk

By the time you integrate your project with Snyk, it automatically scans for vulnerabilities, fixes, and sends a pull request. Snyk’s GitHub badge shows the vulnerability state of the latest commit on the default branch.

![](https://assets.website-files.com/6294d502b5093e3965b91f4d/62a1f7e772a7c9e1de35606c_Top5%2520Badges%2520That%2520Will%2520Show%2520Your%2520GitHub%2520Repository%2520is%2520Well%2520Tested%2520%2526%2520Trusted-Oct-27-2021-11-53-52-78-AM.png)

Adding this badge to your repository gives a solid stance to your project. It can be counted as proof of security. More information about how to use it can be found  [**here**](https://support.snyk.io/hc/en-us/articles/360003997277-Badge-Support-for-Repositories).

## 2. CodeCov

Code coverage is one of the essential parts of software quality in a CI pipeline. Tools like CodeCov enable developers to go to sleep with a mind in peace when their application is well tested all over.

![Badges - Codecov](https://assets.website-files.com/6294d502b5093e3965b91f4d/62a1f7e7c9cf682287c26e79_Screen%2520Shot%25202021-10-27%2520at%252015.16.54.png)

Seeing that the code of a project is tested at a high percentage of coverage gives a reliable feeling to the contributors and users.

More importantly, it is important to increase the readability of your repository to give a quick glance at health metrics to expert or rookie developers.

Check out the documentation of  [**status badges**](https://docs.codecov.com/docs/status-badges)  for more information.

## 3. LGTM

LGTM badge in your repository will display the quality of the code of your project. It assigns a grade and a score to the code’s latest state but not the past versions.

![](https://assets.website-files.com/6294d502b5093e3965b91f4d/62a1f7e75e32952fe10b2080_Top5%2520Badges%2520That%2520Will%2520Show%2520Your%2520GitHub%2520Repository%2520is%2520Well%2520Tested%2520%2526%2520Trusted-Oct-27-2021-11-53-52-60-AM.png)

-   _The code quality score, or score, is a measure of how impressed we are with a project. High values indicate projects with a code quality above expectation, and lower values indicate underperforming projects._
-   _The code quality grade, or grade, is an estimation of the relative quality of a project when compared to similar reference projects. It is a letter between A+ and E that puts the score in perspective._

![](https://assets.website-files.com/6294d502b5093e3965b91f4d/62a1f7e7635364289e4db8eb_Top5%2520Badges%2520That%2520Will%2520Show%2520Your%2520GitHub%2520Repository%2520is%2520Well%2520Tested%2520%2526%2520Trusted-1.png)

LGTM displays alerts that indicate potential problems in your code. Alerts naturally indicate poor quality code when not taken into account.

You can find the instructions for adding badges to project README files in  [**this document**](https://lgtm.com/help/lgtm/adding-badges-to-project-readme-files).

## 4. Codeclimate

Showcasing Code Climate’s maintainability badge with an “A” rating in your GitHub repository reflects how issue-free your code is.

![](https://assets.website-files.com/6294d502b5093e3965b91f4d/62a1f7e7a4dafe03924e42b2_Top5%2520Badges%2520That%2520Will%2520Show%2520Your%2520GitHub%2520Repository%2520is%2520Well%2520Tested%2520%2526%2520Trusted-4.png)

Code Climate calculates a rating between A to F with respect to the total remediation times of technical debt issues in a repository.

There are many advanced configuration options and settings which you can read from  [**this document**](https://docs.codeclimate.com/docs/maintainability).

## 5. Foresight

Thundra Foresight offers a number of badges to showcase your test metrics. It is always a good idea to be as confident as to show your software is tested well.

-   The first badge is the  _Tests Badge_;

![](https://assets.website-files.com/6294d502b5093e3965b91f4d/62a1f7e82f525e384fd1ee1e_Top5%2520Badges%2520That%2520Will%2520Show%2520Your%2520GitHub%2520Repository%2520is%2520Well%2520Tested%2520%2526%2520Trusted-2.png)

This badge displays the results of your latest test run in your build. The results are displayed as the number of successful, failed, and skipped tests.

-   The second badge is the  _Test Utilization Score Badge_;

![](https://assets.website-files.com/6294d502b5093e3965b91f4d/62a1f7e89ae197c93b35cb11_Top5%2520Badges%2520That%2520Will%2520Show%2520Your%2520GitHub%2520Repository%2520is%2520Well%2520Tested%2520%2526%2520Trusted.png)

This badge strips your test performance from  **before-all**,  **before-each**,  **after-each**, and  **after-all**  durations from the total test run duration, and calculates how your test code performs.

The utilization is calculated by using the following formula:

where

td = Total test run duration

ba = Total passed time while execution  **“before-all”**  phase

be = Total passed time while execution  **“before-each”** phase

ae = Total passed time while execution  **“after-each”**  phase

aa = Total passed time while execution  **“after-all”**  phase

The low utilization factor indicates that most of the test run execution time is occupied by test-case or test-suite-based setup and/or teardown operations like starting or initializing a database or connection to an external service. For such a case, there might be possible optimization points in your tests by getting rid of redundant setup or teardown executions (for ex. initializing database for per test-suite instead of per test case)

-   The third badge is the  _Successful Tests Badge_;

![](https://assets.website-files.com/6294d502b5093e3965b91f4d/62a1f7e88a61bc38d3536afb_Top5%2520Badges%2520That%2520Will%2520Show%2520Your%2520GitHub%2520Repository%2520is%2520Well%2520Tested%2520%2526%2520Trusted-Oct-27-2021-11-53-53-09-AM.png)

It is nice to see a high percentage of successful tests on your repository. This badge can be so-called to impress and convince your contributors.

Here’s  [**the documentation**](https://foresight.docs.thundra.io/how-to/badges)  of how to generate dynamic test stats badges with Thundra Foresight.

_Editor's edition: Foresight has a GitHub application that can be found on_ [**_Github Marketplace_**](https://github.com/marketplace/thundra-foresight)_._

## Conclusion

Adding just a few lines of Markdown code to generate badges in your repositories helps your repository be more human-friendly in means of understandability.

Since the initial step of gaining trust from the first acquaintance, it’s a good idea to showcase that your GitHub repository is secure, well covered, maintained, tests are passing, and successful.




> Save the date! 🕊️
> On the 28th of September, we are launching Foresight on Product Hunt 🎉🍻
> **Take your seat before we launch on** [**Product Hunt**](https://www.producthunt.com/upcoming/foresight-ci-test-monitoring-for-github-actions) **💜**
[](https://www.producthunt.com/upcoming/foresight-ci-test-monitoring-for-github-actions)

![](https://assets.website-files.com/6294d502b5093e3965b91f4d/631b1da59b02dabd4c193ad6_unnamed.png)