Closed
Description
Currently our pytest framework in tests/pytest is very naive. It assumes that dragongly process is already running.
-
We should introduce the fixture that assumes the binary exists under
gitroot/build_dbg
(ifDFLY_BIN
env is undefined).
this fixture should start a dragonfly process at the beginning of pytest run and be used by multiple tests. Each test should get an empty db (after flushall). -
We should be able to parametrize this fixture in order to run dragonfly process with different flags. Tests would define which configuration they need. For example, some tests may want to test memcache protocol and access dragonfly process with
memcached_port=...
defined.