2 minutes read

POSTED Oct, 2021 dot IN Testing

Test Debugging for GitHub Actions

Ismail Egilmez

Written by Ismail Egilmez

Business Development Manager @Thundra


In a world where minutes of downtime can overthrow SLAs, cause significant amounts of customer frustration, and as a matter of fact cost millions of dollars, observability is shifting left in the software development life cycle.

Developers are frustrated by erroneous, flaky, and long-running tests that fail builds within GitHub Actions continuous integration pipelines.

With the release of our new GitHub Actions integration, the Foresight agent will be added to your Maven and Gradle super easily. We built a “plugin” to make the experience more seamless when integrating Foresight to unlock granular detailed analytics on their tests (unit, integration, e2e, etc.).

Quick reminder: what is Foresight?

Foresight is a CI build monitoring tool that helps developers, testers, QA engineers, and more to debug and troubleshoot test failures and latencies in continuous integration pipelines. With Foresight’s unique tracing engine, it is possible to understand the root cause of a test failure in a distributed microservice application.

Signing up for Thundra (with your GitHub account)

Thundra has three products and you can use all of them with one Thundra account. You can sign up for your Thundra account using SSO with your GitHub or Google accounts.

image 1

Once you sign up, please don’t forget to select Foresight amongst the products listed.


Create a project

Some of the well-known open-source projects are integrated with Foresight and their tests are run in Thundra’s test environments to showcase the granular test analytics.

  1. Create your project by clicking the + Create Project button.
  2. Give a unique name to your project.
  3. And choose the “GitHub Actions” integration option.

You don’t have to integrate your project with Foresight to see what it offers! Here’s just a sneak-peak for you. Foresight showcases:

  • Performance graphs
  • Logs
  • Metrics
  • Traces

of every single test in your test suites at every test run of your CI/CD builds.


How does the integration works

Foresight's GitHub Actions (Maven Test Instrumentation, Gradle Test Instrumentation) helps you to instrument Thundra's agent automatically, so that you ease the burden of manual effort for recording your test runs.


Foresight supports Maven and Gradle, and it will be supporting more build tools soon.

Maven - GitHub Action

You need to configure Thundra API Key and the Thundra Project ID. These are the only two required parameters that can be obtained from the Foresight project settings page.


Gradle - GitHub Action

You need to configure Thundra API Key and the Thundra Project ID. These are the only two required parameters that can be obtained from the Foresight project settings page.


You can refer to the integration documentation anytime you wish or contact the Thundra team when you have a question via support@thundra.io.

Now you can monitor your tests with Foresight and Keep your Master Branch Green!

With the GitHub Actions integration, you will be able to easily integrate Foresight into any of your GitHub repositories and start seeing the analytics at the first run of your tests.

Below are some key benefits that GitHub customers can expect from Thundra Foresight integration.

- Test Run Status Summary

Github users can have a piece of overview information about their passed, failed, skipped, or aborted tests and the total execution time of the test runs.

image 7

- Contextualized Information For Every Single Test

Logs, metrics, traces, and performance charts give immediate context about the failure root cause.


- Distributed Traces for Microservices

You can understand the behavior of your distributed microservices applications at a test failure with the help of aggregated traces, metrics, and logs.


- Time Travel Debugging

You can travel back in time to previous states of your application when testing by getting a snapshot of when each line of code is executed.


Thundra Foresight is designed to help developers, testers, QA engineers, and more detect, debug, and troubleshoot the erroneous, flaky, and high latency tests which block their continuous integration pipelines to deliver code in a continuous manner.

You can check Foresight's  CI Observability application on GitHub Marketplace for free for a limited time.

Visit our extended documentation and signup for Thundra now, and try Thundra’s GitHub Action Maven and Gradle integrations for free!