
RunTests
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 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.
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
authNon-dynamic
Authentication information.
io.kestra.plugin.kestra.AbstractKestraTask-Auth
API token
Password for HTTP basic authentication
Username for HTTP basic authentication
failOnTestFailurebooleanstring
falseShould the task be marked as FAILED when a test fails
flowIdstring
The Flow id
includeChildNamespacesbooleanstring
trueTo include child namespaces or not
kestraUrlstring
Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.
namespacestring
The namespace
tenantIdstring
The tenant ID to use for the request, defaults to current 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_APItaskStateOverridenullstring
testSuitesRunFailedCountinteger
Number of test suites failed
testSuitesRunSkippedCountinteger
Number of test suites skipped
testSuitesRunSuccessCountinteger
Number of test suites run in success