Closed waveywaves closed 3 years ago
Currently there are no unit tests for any of the code that exists in this repo. Before moving forward with anything else it is important that these tests are added.
https://www.jenkins.io/doc/developer/testing/ Mocking would be done using https://github.com/fabric8io/kubernetes-client#mocking-kubernetes
Prerequisites https://github.com/jenkinsci/tekton-client-plugin/pull/14 #19
CreateStep
createTaskRun https://github.com/jenkinsci/tekton-client-plugin/pull/20 createTask #24 createPipeline #25 createPipelineRun #25 createPipelineResource #26 runCreate #27
createTaskRun
createTask
createPipeline
createPipelineRun
createPipelineResource
runCreate
DeleteStep
deleteTaskRun #29 deleteTask #29 deletePipeline #29 deletePipelineRun #30 deletePipelineResource #30 runDelete #31
deleteTaskRun
deleteTask
deletePipeline
deletePipelineRun
deletePipelineResource
runDelete
Closing issue as unit tests for createStep and deleteStep have been added with 59% overall code coverage
Currently there are no unit tests for any of the code that exists in this repo. Before moving forward with anything else it is important that these tests are added.
https://www.jenkins.io/doc/developer/testing/ Mocking would be done using https://github.com/fabric8io/kubernetes-client#mocking-kubernetes
Prerequisites https://github.com/jenkinsci/tekton-client-plugin/pull/14 #19
CreateStep
createTaskRun
https://github.com/jenkinsci/tekton-client-plugin/pull/20createTask
#24createPipeline
#25createPipelineRun
#25createPipelineResource
#26runCreate
#27DeleteStep
deleteTaskRun
#29deleteTask
#29deletePipeline
#29deletePipelineRun
#30deletePipelineResource
#30runDelete
#31