incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <>
Subject Re: Unit Testing Cassandra
Date Wed, 19 Jun 2013 07:15:02 GMT
Unit testing means testing in isolation the smallest part.

Unit tests should not take more than a few milliseconds to set up and
verify their assertions.

As such, if your code is not factored well for testing, you would typically
use mocking (either by hand, or with mocking libraries) to mock out the
bits not under test.

Extensive use of mocks is usually a smell of code that is not well designed
*for testing*

If you intend to test components integrated together... That is integration

If you intend to test performance of the whole or significant parts of the
whole... That is performance testing.

When searching for the above, you will not get much luck if you are looking
for them in the context of "unit testing" as those things are *outside the
scope of unit testing"

On Wednesday, 19 June 2013, Shahab Yunus wrote:

> Hello,
> Can anyone suggest a good/popular Unit Test tools/frameworks/utilities out
> there for unit testing Cassandra stores? I am looking for testing from
> performance/load and monitoring perspective. I am using 1.2.
> Thanks a lot.
> Regards,
> Shahab

Sent from my phone

View raw message