Setting up vscode debugger for pytest
- CMD+Shift+P Select a python interpreter
setting.json
:python.testing.pytestEnabled: true
Passing attributes to test function
Add a new filev pytest.ini
in main directory.
[pytest]
addopts = --dtype=float32,float64 --device=all
Now enjoy it!
Or of course you can run test in termial
pytest -s tests/geometry/epipolar/test_triangulation.py::TestSomeClass::test_some_ function--dtype=float32,float64 --device=all