What's the best way to aggregate test cases from multiple modules such that a single test run will execute them all and present the results in the PyDev UnitTest window?
There are many choices in PyDev depending on what you want:
Right-click a folder and choose 'run as > Python unit-test' (will run all modules below the dir as unit-tests).
Right-click multiple python modules and choose 'run as > Python unit-test' (will load the tests for all those modules and run them).
Create a module which imports all the tests with a different name and select 'run as > Python unit-test' for that module.
i.e.:
from test_mod1 import Test as Test1
from test_mod2 import Test as Test2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With