Files
scylladb/test/unit/README.md
Andrei Chekun 36ad813b94 test.py: Add the possibility to run unit tests from pytest
Add the possibility to run unit tests from pytest
2025-02-07 21:40:28 +01:00

596 B

Running tests with pytest

To run test with pytest execute

pytest test/unit

To execute only one file, provide the path filename

pytest test/unit/lsa_async_eviction_test.cc

Since it's a normal path, autocompletion works in the terminal out of the box.

To provide a specific mode, use the next parameter --mode dev, if parameter isn't provided pytest tries to use ninja mode_list to find out the compiled modes.

Parallel execution is controlled by pytest-xdist and the parameter -n auto. This command starts tests with the number of workers equal to CPU cores.