
Kestra Plugin RunTests
CertifiedRun tests by query
Kestra Plugin RunTests
Run tests by query
Executes unit tests matching a tenant/namespace/flow query. Defaults to the current tenant, includes child namespaces, and marks failures as WARNING unless failOnTestFailure is true.
type: io.kestra.plugin.kestra.ee.tests.RunTestsExamples
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-dynamic
Select API authentication
Use either an API token or HTTP Basic (username/password); do not provide both.
io.kestra.plugin.kestra.AbstractKestraTask-Auth
API token for bearer auth
trueAutomatically retrieve credentials from Kestra's configuration if available
The default configuration can be configured globally inside the Kestra configuration file:
- Set
kestra.tasks.sdk.authentication.api-tokento use an API token - Set
kestra.tasks.sdk.authentication.usernameandkestra.tasks.sdk.authentication.passwordfor HTTP basic authentication The Enterprise edition also provides setting a default configuration at the Namespace of Tenant level by an administrator.
Password for HTTP Basic auth
Username for HTTP Basic auth
failOnTestFailure booleanstring
falseFail task on test failures
Defaults to false. When true, FAILED test suites set the task state to FAILED instead of WARNING.
flowId string
Flow id filter
Optional flow identifier to scope test suites.
includeChildNamespaces booleanstring
trueInclude child namespaces
Defaults to true. Applies when namespace is set.
kestraUrl string
Override Kestra API endpoint
URL used for calls to the Kestra API. When null, renders {{ kestra.url }} from configuration; if still empty, defaults to http://localhost: 8080. Trailing slashes are stripped before use.
namespace string
Namespace filter
If null, runs against the current tenant. Set to limit to a namespace; includeChildNamespaces controls recursion.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
tenantId string
Override target tenant
Tenant identifier applied to API calls; defaults to the current execution tenant.
Outputs
result
Tests by query result
io.kestra.sdk.model.TestSuiteServiceTestRunByQueryResult
io.kestra.sdk.model.TestSuiteServiceRunByQueryRequest
io.kestra.sdk.model.TestSuiteRunResult
date-timeio.kestra.sdk.model.UnitTestResult
ERRORSUCCESSFAILEDSKIPPEDUNKNOWN_DEFAULT_OPEN_APIuridate-timeERRORSUCCESSFAILEDSKIPPEDUNKNOWN_DEFAULT_OPEN_APItaskStateOverride string
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDTask state override applied based on the test result
testSuitesRunFailedCount integer
Number of test suites failed
testSuitesRunSkippedCount integer
Number of test suites skipped
testSuitesRunSuccessCount integer
Number of test suites run in success