Documentation

Quickstart: send your first automated test report

This walkthrough takes about five minutes, and by the end you'll have a TestNod project receiving JUnit XML reports from a GitHub Actions workflow. The example uses the official TestNod uploader action, which keeps the change to your CI to a single step.

Step 1: Create a TestNod account and project

If you don't have an account yet, start by signing up for free. After creating your account, you'll create your TestNod organization and then a new project, which takes about 30 seconds.

Once a project is created, open its settings page and copy the project token. Every upload you want to assign to the project needs to be scoped to that token, so treat it like an API key and store it as a CI secret rather than checking it into your repository.

Project Settings page with the Secret token field visible in the Project Token section

Step 2: Add the project token as a GitHub secret

In your GitHub repository, open Settings → Secrets and variables → Actions and add a new repository secret named TESTNOD_PROJECT_TOKEN. Paste the project token from the previous step in as the value. The workflow reads it via ${{ secrets.TESTNOD_PROJECT_TOKEN }}, so the token never appears in your workflow YAML or in workflow logs.

GitHub Actions secrets page showing the new TESTNOD_PROJECT_TOKEN repository secret

Step 3: Generate JUnit XML reports from your tests

All you need is a JUnit XML report from your test framework. If your test framework runs in parallel or across multiple runners, TestNod accepts multiple JUnit XML files per test run.

Many automated test runners can produce JUnit output without additional configuration. If yours doesn't, look for a third-party library that adds it, and check your test framework's documentation for how to generate JUnit XML reports from your test runs.

Step 4: Add the upload step to your CI workflow

Add an upload step after your test step in your CI workflow. It sends the JUnit XML file to TestNod and creates a new test run you can follow in the TestNod dashboard.

The following is a shortened example of a GitHub Actions workflow that runs RSpec tests and uploads a single JUnit XML report to TestNod:

name: CI
on:
  push:
    branches: [main]
  pull_request:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Run tests
        run: bundle exec rspec --format progress \
          --format RspecJunitFormatter --out tmp/rspec.xml

      - name: Upload test results to TestNod
        if: ${{ !cancelled() }}
        uses: testnod/testnod-uploader-action@v1
        with:
          file: tmp/rspec.xml
          token: ${{ secrets.TESTNOD_PROJECT_TOKEN }}
          tags: ci,rspec
          ignore-failures: true

The file input points to the JUnit XML file generated by the test step, and the token input reads the project token from the GitHub secret you set up in Step 2.

The tags input groups test runs and lets you filter them in the dashboard, and TestNod runs its analysis against other test runs with the same tags. In this example, the tags ci and rspec are added to every test run uploaded from this workflow, but you can choose any tags that make sense for your project.

The branch name, commit SHA, build ID, and a link back to the GitHub Actions run are attached automatically from the workflow environment, so the TestNod run page points right back at the originating CI run.

Step 5: Open the test run in TestNod

After your CI workflow finishes running with the new upload step, open the project from your dashboard, where the new test run appears within a few seconds of the upload step finishing. The test run starts as "pending" while TestNod processes the JUnit XML reports and updates its status once the results are ready.

Project dashboard test runs list with a new test run in the pending status at the top

If the test run doesn't appear in your project or its status is wrong, the Troubleshooting uploads page covers how to fix the most common issues. You can also message the TestNod team through the in-app chat or email support.

What's next

Open your new run and follow the Test run page tour to learn what each part of the page shows. The GitHub Actions integration page covers parallel builds and the other inputs the action accepts.

Start tracking your test runs

The Solo plan is free for one project and 250 test runs a month, and you don't need a credit card to sign up.

Sign up free