How do I configure PyCharm to run my pytest tests?
1. Go to Edit Configurations,
under runà Edit configuration or
select Right corner of the PyCharm IDE
2. Add new run configuration and select Python test à
pytest
3. In the run config details, you need to set
target is Script path
Project under Environment section
Python interpreter under Environment variable section
4. Then click on apply and Ok button.
5. Run it with a normal run command
Output will be
Comments
Post a Comment