Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1002 Bytes

CONTRIBUTING.md

File metadata and controls

29 lines (22 loc) · 1002 Bytes

Contributing

First of all, thank you!

To run tests, you will need Docker installed on your machine. This repository uses docker-compose to run multiple Cassandra instances in parallel on different ports to test different features (such as authenticationn). To run normal tests, do this from the root of the project:

docker-compose up --detach
mix test

The --detach flag runs the instances as daemons in the background. Give it a minute between starting the services and running mix test.all since Cassandra takes a while to start. You can check whether the Docker containers are ready with docker-compose ps. To stop the services, run docker-compose stop.

By default, tests run for native protocol v5 except for a few specific tests that run on other protocols. If you want to limit the test suite to a native protocol, use:

CASSANDRA_NATIVE_PROTOCOL=v4 mix test.all