Skip to main content

colcon event handler that uploads test results to Tesults

Project description

colcon-tesults

A colcon event handler that uploads test results to Tesults after colcon test completes.

Recommendation

If you are using GoogleTest (C++) or pytest (Python) we strongly recommend using gtest-tesults or pytest-tesults instead. Those integrations provide per-test reporting with descriptions, steps, custom fields, and file uploads. colcon-tesults reads JUnit XML output and provides basic pass/fail results only — no enhanced reporting.

colcon-tesults is best suited for mixed workspaces where per-package setup is not practical, or as a quick zero-config starting point.

Installation

pip install colcon-tesults

Or with Pixi/RoboStack:

pixi add --pypi colcon-tesults

Usage

Set TESULTS_TARGET to your target token and run colcon test as usual:

TESULTS_TARGET=token colcon test

colcon-tesults is enabled by default once installed. If TESULTS_TARGET is not set, it silently does nothing.

Config file (optional)

Keep tokens out of scripts by using a key name and pointing to a config file:

TESULTS_TARGET=my-target TESULTS_CONFIG=/path/to/tesults.cfg colcon test

tesults.cfg format:

# Tesults target tokens
my-target = eyJ0eXAiOiJ...
staging   = eyJ0eXAiOiK...

Build information (optional)

TESULTS_BUILD_NAME=1.0.0 \
TESULTS_BUILD_RESULT=pass \
TESULTS_BUILD_DESCRIPTION="Release build" \
TESULTS_BUILD_REASON="" \
colcon test

How it works

colcon-tesults hooks into the colcon event system. After each package's tests finish (JobEnded event), it reads the JUnit XML output from the package's build directory. When the colcon process exits, all collected results are uploaded to Tesults in a single request.

Documentation

https://www.tesults.com/docs/colcon

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

colcon_tesults-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

colcon_tesults-1.0.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file colcon_tesults-1.0.0.tar.gz.

File metadata

  • Download URL: colcon_tesults-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for colcon_tesults-1.0.0.tar.gz
Algorithm Hash digest
SHA256 8b63dcc8e4e9b1c547ec1a233f6cebc1bc3d9f1a723e1b2e65de19f274367100
MD5 d80363cbdbd90bdd8ae77ebe654f70aa
BLAKE2b-256 486a5b4801110cf1ae49ddae430524808c0aa68d573d009dc3abbdc05514b8b2

See more details on using hashes here.

File details

Details for the file colcon_tesults-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: colcon_tesults-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for colcon_tesults-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d85f6f188fb05d8f021a8fe5a76eb96c9d91df3c585467bc20bac799bdf1a9cd
MD5 d243a077c52caf94279ce98e5c48a2f9
BLAKE2b-256 a8a758ce647f7d71f3dec9198231f878522204fd90f9217c7bc5268d41356335

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page