RunTests
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.
type: "io.kestra.plugin.kestra.ee.tests.RunTests"
Examples
Run all current tenant tests
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
auth Non-dynamicAbstractKestraTask-Auth
Authentication information.
failOnTestFailure booleanstring
false
Should the task be marked as FAILED when a test fails
flowId string
The Flow id
includeChildNamespaces booleanstring
true
To include child namespaces or not
kestraUrl string
Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.
namespace string
The namespace
tenantId string
The tenant ID to use for the request, defaults to current tenant.
Outputs
result TestSuiteServiceTestRunByQueryResult
Tests by query result
taskStateOverride nullstring
testSuitesRunFailedCount integer
Number of test suites failed
testSuitesRunSkippedCount integer
Number of test suites skipped
testSuitesRunSuccessCount integer
Number of test suites run in success
Definitions
io.kestra.sdk.model.UnitTestResult
executionId string
fixtures Fixtures
state string
ERROR
SUCCESS
FAILED
SKIPPED
testId string
testType string
url string
uri
io.kestra.plugin.kestra.AbstractKestraTask-Auth
apiToken string
API token.
password string
Password for HTTP Basic authentication.
username string
Username for HTTP Basic authentication.
io.kestra.sdk.model.TestSuiteRunResult
io.kestra.sdk.model.TaskFixture
description string
id string
outputs object
state string
CREATED
RUNNING
PAUSED
RESTARTED
KILLING
SUCCESS
WARNING
FAILED
KILLED
CANCELLED
QUEUED
RETRYING
RETRIED
SKIPPED
BREAKPOINT