RunTest
Run an unit test
Run a single unit test. You can filter specific test cases to run, or all of them by default.
yaml
type: "io.kestra.plugin.kestra.ee.tests.RunTest"
Examples
Run a test
yaml
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
yaml
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
auth Non-dynamicAbstractKestraTask-Auth
Authentication information.
failOnTestFailure booleanstring
Default
false
Should the task be marked as FAILED when a test fails
kestraUrl string
Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.
tenantId string
The tenant ID to use for the request, defaults to current tenant.
testCases array
SubType string
Specific test cases to run
Outputs
result TestSuiteRunResult
Test result
taskStateOverride nullstring
Definitions
io.kestra.sdk.model.UnitTestResult
executionId string
fixtures Fixtures
state string
Possible Values
ERROR
SUCCESS
FAILED
SKIPPED
testId string
testType string
url string
Format
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
Possible Values
CREATED
RUNNING
PAUSED
RESTARTED
KILLING
SUCCESS
WARNING
FAILED
KILLED
CANCELLED
QUEUED
RETRYING
RETRIED
SKIPPED
BREAKPOINT