Pytest CLI
Install
pip install pytest pytest-asyncio
pytest --helpUsage
pytest # search into a current directory all functions started from 'test_' or ended with '_test'
pytest path/to/test_1.py path/to/test_2.py
pytest path/to/test_1.py::test_constructor # Run the 'test_asdict' function only
pytest path/to/test_1.py::test_function
pytest path/to/test_1.py::TestClass::test_method-v β ΠΏΠΎΠ΄ΡΠΎΠ±Π½ΠΎ
-q β ΠΊΡΠ°ΡΠΊΠΎΠΡΠΈΠΌΠ΅Ρ ΡΡΡΡΠΊΡΡΡΡ ΡΠ°ΠΉΠ»ΠΎΠ² Π΄Π»Ρ ΡΠ΅ΡΡΠΎΠ²
Last updated