I have a file and it has bunch of methods starting with prefix \"test\". Now I want to run this file and it has a __name__ == \"__main__\" construct which sets
Using PyCharm Community Edition 2017.2 EAP. Here is how I did it:
Run menu select Run.... (Or use its keyboard shortcut)edit configuration..., my_script_name, and Unittests in my_script_name.py. Click on the right arrow of my_script_name.save configuration option in the arrow menu. Choose it.If the configuration changed again, follow the same steps but this time choose run in the last step.