Component Test Framework

Lydtech

Black Box Testing Your Application

Component testing helps validate the correctness of an application and its ability to integrate with external resources and third party services.

Lydtech's open source Component Test Framework (CTF) provides the framework and orchestration for running component tests that spin up the application under test and its external dependencies in Docker containers.

Get started with the Component Test Framework

This quick start guide is the fastest way to learn and see the framework in action


Features

Currently supported:


Framework Source Code

The Framework project is available on Github:


Companion Projects

This example project demonstrates using the framework with the following external dependencies:

  • Kafka
  • Postgres
  • Debezium
  • Wiremock

There is an advantage in separating its usage from the service under test into its own module to ensure that it does not utilise any of the service's classes, and to ensure there are no dependency clashes with the serivce's dependencies. This next example project demonstrates its usage in a multi module maven project, along with:

  • A child component-test module
  • REST calls to the service under test
  • Multiple additional containers (simulators)

Reference Projects

There are many reference projects available demonstrating all facets of the Component Test Framework.

See the Component Test Framework Readme for the latest list.