Skip to content
terminal

GitHub Action

Touca - Run Tests

v2 Latest version

Touca - Run Tests

terminal

Touca - Run Tests

Runs Touca Tests in your GitHub Actions workflow using the Touca CLI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Touca - Run Tests

uses: trytouca/actions-run-tests@v2

Learn more about this action in trytouca/actions-run-tests

Choose a version

GitHub Actions plugin for running Touca tests

Plugin that helps you run Touca tests as part of GitHub Actions CI.

Example usage

uses: trytouca/actions-run-tests@v2
with:
  directory: ./examples/python/02_python_main_api

Inputs

version

Optional Version of the code under test. When not provided, the built-in test runner will query Touca server for the latest submitted version and a minor version increment to that version.

directory

Optional Directory where Touca tests are located. When not provided, Touca CLI attempts to recursively find and run all Touca tests in the current working directory. Assumes your tests are written using the Touca Python SDK.

executable

Optional Test executable to use instead of Touca CLI. Useful for running Touca tests written in C++ that cannot be run via the Touca CLI.

job_summary

Optional Print test report summary as GitHub Actions Job Summary. Enabled by default. Here is a sample summary:

GitHub Actions Job Summary