Replies: 3 comments 1 reply
-
|
There is some prior work in this TEP proposal that I didn't see all the way through: #170 In the PR and the linked design docs there is some requirements gathering and also some exploration of different alternatives. Ultimately it would be great to express these tests using Tekton types. |
Beta Was this translation helpful? Give feedback.
-
|
This is timely for my team as we are taking early steps to test our pipelines using @afrittoli may find my example familiar as he helped me with a workspace issue in this example One obvious flaw, however, is that a task may fail while exiting successfully, so the feedback isn't quite right, we're left watching the console for output. |
Beta Was this translation helpful? Give feedback.
-
|
Right now I write my pipelines as a script in each step/stage - basically a function call in some language that's easy to run locally - and unit test each function and then also end-to-end test similar to how you describe in your intro. I'm not using Tektron yet - it caught my eye from https://www.jenkins.io/blog/2025/10/19/maeve-final-evaluation/ Not to sound too negative but when I glanced at the intro I noticed nested shell:
Making this testable probably requires pulling this script into a docker container, which is an indirect way of importing code. Speaking of helm like above, I've used https://github.com/helm-unittest/helm-unittest which is OK altho not a huge fan of coding via yaml really - maybe needs to grow on me. I suppose tools like https://github.com/firecow/gitlab-ci-local and act https://nektosact.com/usage/index.html can power testing of specific steps altho I haven't used them like that for testing yet - not sure if Tektron has a similar tool |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Today we use tasks and pipelines in the tests of some of Tekton's project to provide end of end verification of Tekton's features.
The catalog hosts reusable tasks and pipeline, and the in includes two kind of tests: linting and e2e. In the e2e tests we verify that the task and/or pipeline runs to successful completion.
We could consider producing documentation of testing strategies and/or tools to allow for deeper testing of tasks and pipelines:
Advantages of this work would be:
Beta Was this translation helpful? Give feedback.
All reactions