Nathan Cai
10/21/2025, 9:03 PMmake test on their own devices? It burns a whole in my RAM when I run it on my laptopDesmond Cheong
10/21/2025, 9:08 PMDAFT_RUNNER=native pytest tests/my/path/test_file.py -s -k "my_test_name"Malcolm Greaves
10/21/2025, 10:38 PMuv with uv run pytest.
YMMV but I use this a lot:
DAFT_RUNNER=native uv run pytest -v --cov=daft '<FILE(S) TO TEST>'
If you add in --cov=daft then it will print a code coverage report in your terminal 🙂
Also, if you're adding new python packages, they won't be picked up unless you get uv to sync them again. Since our setup is a bit more complex than a normal Python project, it's necessary to do a make build if you're changing Python packages around.Sammy Sidhu
10/21/2025, 10:50 PMpytest --last-failed which only runs the failed tests