Files
scylladb/test/redis
Nadav Har'El 7dc54771e1 test/cql-pytest: allow "run-cassandra" without building Scylla
Before this patch, all scripts which use test/cql-pytest/run.py
looked for the Scylla executable as their first step. This is usually
the right thing to do, except in two cases where Scylla is *not* needed:

1. The script test/cql-pytest/run-cassandra.
2. The script test/alternator/run with the "--aws" option.

So in this patch we change run.py to only look for Scylla when actually
needed (the find_scylla() function is called). In both cases mentioned
above, find_scylla() will never get called and the script can work even
if Scylla was never built.

Signed-off-by: Nadav Har'El <nyh@scylladb.com>

Closes #13010
2023-03-01 07:54:19 +02:00
..

Tests for Scylla with Redis API that should also pass, identically, against Redis.

Tests use the redis library for Redis API, and the pytest frameworks (both are available from Linux distributions, or with "pip install").

To run all tests against the local installation of Scylla with Redis API on localhost:6379, just run pytest.

Some additional pytest options:

  • To run all tests in a single file, do pytest test_strings.py.
  • To run a single specific test, do pytest test_strings.py::set.
  • Additional useful pytest options, especially useful for debugging tests:
    • -v: show the names of each individual test running instead of just dots.
    • -s: show the full output of running tests (by default, pytest captures the test's output and only displays it if a test fails)