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.

Default false

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.

SubType string

Specific test cases to run

Test result

Possible Values
ERRORSUCCESSFAILEDSKIPPED
Format uri

API token.

Password for HTTP Basic authentication.

Username for HTTP Basic authentication.

Format date-time
Format date-time
Possible Values
ERRORSUCCESSFAILEDSKIPPED
Possible Values
CREATEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINT
SubType string
SubType