Christof Vermeersch Christof Vermeersch - 1 year ago 127
Python Question

Run multiple unittest tes tfiles at once

In my project I created a unittest test file for each Python file. For example, I have file
and its accompanying
. Similarly for
, etc.

However, since these files depend on each other it is possible that a change in one file affects another, thus if I change something I need to rerun all my testfiles. For now, I have to do this manually. Is it possible to run all these test files at once with only one handling? Maybe call them from an extra file? I want however still use the testsuite as before (see the image below).

I am using Python 2.7 and JetBrains' PyCharm.

enter image description here

Answer Source

It's possible to run all tests located in some folder.

Go to Run - Edit Configurations, select or create run configuration for tests and specify path to folder.

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download