jsevellec / cassandra-unit

Utility tool to load Data into Cassandra to help you writing good isolated JUnit Test into your application
GNU Lesser General Public License v3.0
424 stars 0 forks source link

Allow to override temp directory in AbstractCassandraUnitTestExecutionListener #265

Open slamdev opened 6 years ago

slamdev commented 6 years ago

In the AbstractCassandraUnitTestExecutionListener#startServer the EmbeddedCassandraServerHelper#startEmbeddedCassandra method is called without specifying the any particular temp directory. That's why DEFAULT_TMP_DIR = "target/embeddedCassandra" is used.

When the library is used in the gradle-managed projects it becomes a bit wired, since gradle uses build directory for outputs.

It would be nice to have an ability to specify temp directory manually, e.g. via

@EmbeddedCassandra(tempDirectory = "build/embeddedCassandra")