forked from taboola/cassandra-unit
-
Notifications
You must be signed in to change notification settings - Fork 1
What is it
Jérémy Sevellec edited this page Oct 15, 2019
·
5 revisions
Let me shortly introduce CassandraUnit
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 :
- Embed an instance of your database in your unit test.
- Next : load data into your database to setup your unit test.
- Finally : execute your test with your data.
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.
- Embed and start a Cassandra instance in your code if you want.
- Load data from a defined dataset (CQL).