...
https://docs.pytest.org/en/stable/ | |
---|---|
1- create a test_xxx file | in the same folder |
2- run the test | pytest -s (optional filename ) |
in pycharm | |
1- change the test tool to pytest | File Menu >> Setting >> Tools >> Python integrated tools |
enable the script output ( allow printout ) | Run Menu >> Test configuration >>> 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Ā |