Coder Social home page Coder Social logo

karatestandalone's Introduction

DEPRECATED

This executor was moved into Testkube repository.

Testkube Logo

Welcome to TestKube Template Executor

TestKube Template Executor is a test executor skeleton for TestKube.
You can use it as basic building blocks for creating a new executor.

What is an Executor?

Executor is nothing more than a program wrapped into Docker container which gets JSON (testube.Execution) OpenAPI based document as an input and returns a stream of JSON output lines (testkube.ExecutorOutput), where each output line is simply wrapped in this JSON, similar to the structured logging idea.

Issues and enchancements

Please follow the main TestKube repository for reporting any issues or discussions

Implemention in several steps:

  1. Create new repo on top of this template
  2. Change go.mod file with your path (just replace github.com/kubeshop/testkube-executor-template project-wise with your package path)
  3. Implement your own Runner on top of [runner interface](https://github.com/kubeshop/testkube/blob/main/pkg/runner/interface.go
  4. Change Dockerfile - use base image of whatever test framework/library you want to use
  5. Build and push dockerfile to some repository
  6. Register Executor Custom Resource in your cluster
apiVersion: executor.testkube.io/v1
kind: Executor
metadata:
  name: postman-executor
  namespace: testkube
spec:
  executor_type: job
  image: kubeshop/testkube-template-executor:0.0.1
  types:
  - example/test

Architecture

This Executor template offers you basic building blocks to write a new executor based on TestKube libraries written in Go programming language, but you're not limited only to Go, you can write in any other programming language like Rust, Javascript, Java or Clojure.

The only thing you'll need to do is to follow the OpenAPI spec for input testkube.Execution (passed as first argument in JSON form) and all output should be JSON lines with testkube.ExecutorOutput spec.
You should also have a final ExecutorOutput with ExecutionResult attached somewhere after successful (or failed) test execution.

Resources:

Go based resources for input and output objects:

Examples

Testkube

For more info go to main testkube repo

Release Releases Go version

Docker builds Code build Release date

Twitter Discord

karatestandalone's People

Contributors

saadisfy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.