
Kestra Plugin RunTest
CertifiedRun a single test suite
Kestra Plugin RunTest
Run a single test suite
Executes one unit test suite by namespace and id. Optionally restricts to listed test cases. Failures mark the task as WARNING unless failOnTestFailure is true; errors always fail.
type: io.kestra.plugin.kestra.ee.tests.RunTestExamples
Run a test
id: run_test
namespace: company.team
tasks:
- id: do_run_one_test
type: io.kestra.plugin.kestra.ee.tests.RunTest
auth:
apiToken: "{{ secret('KESTRA_API_TOKEN') }}"
namespace: company.team
testId: simple-testsuite
Run a specific test testcase
id: run_test_single_testcase
namespace: company.team
tasks:
- id: do_run_one_test
type: io.kestra.plugin.kestra.ee.tests.RunTest
auth:
apiToken: "{{ secret('KESTRA_API_TOKEN') }}"
namespace: company.team
testId: simple-testsuite
testCases:
- testcase_1
Properties
namespace *Requiredstring
Namespace containing the test suite
testId *Requiredstring
Test suite id
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 cases set the task state to FAILED instead of WARNING.
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.
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.
testCases array
Test case ids to run
Leave empty to run every test case in the suite.
Outputs
result
Test result
io.kestra.sdk.model.TestSuiteRunResult
date-timeio.kestra.sdk.model.UnitTestResult
io.kestra.sdk.model.AssertionResult
io.kestra.sdk.model.AssertionRunError
io.kestra.sdk.model.Fixtures
ERRORSUCCESSFAILEDSKIPPEDUNKNOWN_DEFAULT_OPEN_APIuridate-timeERRORSUCCESSFAILEDSKIPPEDUNKNOWN_DEFAULT_OPEN_APItaskStateOverride string
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDTask state override applied based on the test result