Skip to content

improve our pytest framework #199

Closed
@romange

Description

@romange

Currently our pytest framework in tests/pytest is very naive. It assumes that dragongly process is already running.

  1. We should introduce the fixture that assumes the binary exists under gitroot/build_dbg (if DFLY_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).

  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions