RunTestRunTest
RunTestCertified

Run an unit test

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"

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

The namespace

The test id

Authentication information.

Authentication used to call the Kestra API. Uses the same credentials as Kestra login: either an API token or HTTP Basic (username/password).

Definitions
apiTokenstring

API token

passwordstring

Password for HTTP basic authentication

usernamestring

Username for HTTP basic authentication

Defaultfalse

Should the task be marked as FAILED when a test fails

Kestra API URL. If null, uses 'kestra.url' from configuration. If that is also null, defaults to 'http://localhost: 8080'.

The tenant ID to use for the request, defaults to current tenant.

SubTypestring

Specific test cases to run

Test result

Definitions
endDatestring
Formatdate-time
flowIdstring
idstring
namespacestring
resultsarray
assertionResultsarray
actualobject
descriptionstring
errorMessagestring
expectedobject
isSuccessboolean
operatorstring
taskIdstring
errorsarray
detailsstring
messagestring
executionIdstring
fixtures
filesobject
SubTypestring
inputsobject
tasksarray
trigger
statestring
Possible Values
ERRORSUCCESSFAILEDSKIPPEDUNKNOWN_DEFAULT_OPEN_API
testIdstring
testTypestring
urlstring
Formaturi
startDatestring
Formatdate-time
statestring
Possible Values
ERRORSUCCESSFAILEDSKIPPEDUNKNOWN_DEFAULT_OPEN_API
testSuiteIdstring