Skip to content
Jérémy Sevellec edited this page Oct 15, 2019 · 5 revisions

Let me shortly introduce CassandraUnit

Introduction

As I'm A TDD Lover, I'd like to developp in a pure TDD Style combined with continuous integration system like Jenkins.

The difficulty when using a database backend is how to write isolated unit Test. One of solutions is to :

  1. Embed an instance of your database in your unit test.
  2. Next : load data into your database to setup your unit test.
  3. Finally : execute your test with your data.

Concept

In a Relational database world, there is some tools to help you like DBUnit. As Cassandra is a relatively young product (but so beautiful :-)), I didn't find some tools to help me doing what I want. CassandraUnit is born to help you building isolated Unit test in a TDD Style.

Main features for now

  • Embed and start a Cassandra instance in your code if you want.
  • Load data from a defined dataset (CQL).