RunTestsRunTests
​Run​TestsCertified

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.

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.

Definitions
apiTokenstring

API token

passwordstring

Password for HTTP basic authentication

usernamestring

Username for HTTP basic authentication

Defaultfalse

Should the task be marked as FAILED when a test fails

The Flow id

Defaulttrue

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

Definitions
numberOfTestCasesToBeRuninteger
numberOfTestSuitesToBeRuninteger
requestMade
includeChildNamespacesboolean
resultsarray
endDatestring
Formatdate-time
flowIdstring
idstring
namespacestring
resultsarray
assertionResultsarray
errorsarray
executionIdstring
fixtures
statestring
Possible Values
ERRORSUCCESSFAILEDSKIPPEDUNKNOWN_DEFAULT_OPEN_API
testIdstring
testTypestring
urlstring
Formaturi
startDatestring
Formatdate-time
statestring
Possible Values
ERRORSUCCESSFAILEDSKIPPEDUNKNOWN_DEFAULT_OPEN_API
testSuiteIdstring
tenantIdstring

Number of test suites failed

Number of test suites skipped

Number of test suites run in success