
RunTest
Run a single unit test. You can filter specific test cases to run, or all of them by default.
Run a single unit test. You can filter specific test cases to run, or all of them by default.
Run an unit test
Run a single unit test. You can filter specific test cases to run, or all of them by default.
type: "io.kestra.plugin.kestra.ee.tests.RunTest"Examples
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
The namespace
testId*Requiredstring
The test id
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
kestraUrlstring
Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.
tenantIdstring
The tenant ID to use for the request, defaults to current tenant.
testCasesarray
Specific test cases to run
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_API