/
pytest in pycharm

pytest in pycharm


https://blog.jetbrains.com/pycharm/2020/06/visual-testing-with-pytest/




https://docs.pytest.org/en/stable/
1- create a test_xxx filein the same folder
2- run the testpytest -s (optional filename )



in pycharm
1- change the test tool to pytestFile Menu >> Setting >> Tools >> Python integrated tools

enable the script output ( allow printout )

Edit the "pytest " >>> add "-s" in Additional Arguments


Create the test_xxx.py file
Go to the test file

Run the test

Run Menu >> RUn "pytest test_name_of_the_file.py"


or 

Related content

Install PyEZ on windows and Pycharm
Install PyEZ on windows and Pycharm
More like this
Install jupyter
Install jupyter
More like this
Atom Editor
Atom Editor
More like this
install flask in virtual environement
install flask in virtual environement
More like this
0- python module for confluence
0- python module for confluence
More like this
runbot
More like this