What is the keyboard shortcut to run all unit tests in the current project in PyDev + Eclipse?
eclipse, pydev, python-unittest, unit-testing
Solution
Why not:
- define a suite of tests, or a target in an ant script (like this one, at the bottom of the article), -and then associate a launch configuration (an external one for the ant script)?
You could then use a shortcut to that launch configuration (as in this thread). One solution for that is to always launch the last application (F11 or Ctrl+F11 )
<target name="tests" depends="compile">
<py-test pythonpath="${src.dir}" dir=".">
<fileset dir="${src.dir}">
<include name="**/*Test.py"/>
</fileset>
</py-test>
</target>
Note: there are other ways to integrate unit testing with pydev, as shown in SO question Continuous unit testing with Pydev (Python and Eclipse)
Problem
I know Ctrl + F9 runs a single file. How to run them all? If there is no such thing, how to bind one keyboard shortcut to it?