Run multiple unit tests

Run unit tests at multiple levels: all tests for a tenant or namespace, all tests for a specific flow, or a test suite by ID.

yaml
type: "io.kestra.plugin.kestra.ee.tests.RunTests"

Run all current tenant tests

yaml
id: run_tenant_tests
namespace: company.team

tasks:
  - id: run_tenant_all_tests
    type: io.kestra.plugin.kestra.ee.tests.RunTests
    auth:
      apiToken: "{{ secret('KESTRA_API_TOKEN') }}"
Properties

Authentication information.

Default false

Should the task be marked as FAILED when a test fails

The Flow id

Default true

To include child namespaces or not

Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.

The namespace

The tenant ID to use for the request, defaults to current tenant.

Tests by query result

Number of test suites failed

Number of test suites skipped

Number of test suites run in success

Possible Values
ERRORSUCCESSFAILEDSKIPPED
Format uri

API token.

Password for HTTP Basic authentication.

Username for HTTP Basic authentication.

Format date-time
Format date-time
Possible Values
ERRORSUCCESSFAILEDSKIPPED
Possible Values
CREATEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINT
SubType string
SubType