Skip to main content

What is KTestify?

Integration testing for Kafka Streams,
made easy.

KTestify is a modular, open-source framework for testing Apache Kafka data pipelines. At its core sits a transport-agnostic engine — today powering a Cucumber/Gherkin adapter that lets teams produce messages, consume from output topics, and assert record content in plain English. Tomorrow, the same core will drive other test engines and integrations, all without touching a single line of Kafka client code.

Your test suite, in Gherkin.

Write scenarios in plain English. KTestify handles topic wiring, message production, offset management, and record matching — so your tests stay readable.

gherkinorder-stream.feature
Feature: Order stream validation

  Background:
    Given output topic
      | topicName  | topicAlias | namespace   |
      | orders-out | enriched   | com.example |
    Given assets directory
      | path                         |
      | src/test/resources/assets    |

  Scenario: Enriched order appears on the output topic
    When record from file is sent
      | topicName | messageFile      |
      | orders-in | order-123.json   |
    Then expected record from file
      | topicAlias | expectedFile               |
      | enriched   | order-enriched-output.json |

Ready to test your streams?

Browse the documentation to get started, or explore the source on GitHub.