cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ali Akhtar <ali.rac...@gmail.com>
Subject Re: Running Cassandra in Integration Tests
Date Fri, 07 Oct 2016 00:35:43 GMT
That looks great Andrew, but it doesn't seem to have been committed to for
5 months. Is anyone still using cassandra-unit , does it work with latest
cassandra versions (e.g 3.9)?

On Fri, Oct 7, 2016 at 5:33 AM, Andrew Tolbert <andrew.tolbert@datastax.com>
wrote:

> Hi Ali,
>
> cassandra-unit <https://github.com/jsevellec/cassandra-unit> might be
> what you are looking for.  It allows you to run an embedded cassandra
> instance along side your tests and has some nice integration with JUnit.
>
> Thanks,
> Andy
>
> On Thu, Oct 6, 2016 at 7:13 PM Ali Akhtar <ali.rac200@gmail.com> wrote:
>
>> Ok, but that's not what this question is about.
>>
>> I'm looking for a way to run an embedded cassandra instance which is
>> created & destroyed during tests and which doesn't persist any state
>> outside the tests.
>>
>>
>> On Fri, Oct 7, 2016 at 5:10 AM, Kant Kodali <kant@peernova.com> wrote:
>>
>> you dont need to look for cassandra java api to start/stop instance. you
>> just need to write a shell script or python or java or any language to
>> execute shell commands!
>>
>>
>>
>> On Thu, Oct 6, 2016 4:57 PM, Ali Akhtar ali.rac200@gmail.com wrote:
>>
>> Okay.. but how would I start this instance? Is there a java api to
>> programmatically start / destroy an instance during tests?
>>
>> On Fri, Oct 7, 2016 at 4:56 AM, Kant Kodali <kant@peernova.com> wrote:
>>
>> sure as long as that isolated instance is treated as separate cluster you
>> shouldn't run into any problems.
>>
>>
>>
>> On Thu, Oct 6, 2016 4:08 PM, Ali Akhtar ali.rac200@gmail.com wrote:
>>
>> Is it possible to create an isolated cassandra instance which is run
>> during integration tests and it disappears after tests have finished
>> running? Then its recreated the next time tests run (perhaps being
>> populated with test data).
>>
>>  I'm using Java.
>>
>>
>>
>>
>>

Mime
View raw message