What is the key combination for running all unit tests in the current project in PyDev + Eclipse?

I know that Ctrl + F9 runs a single file.

How to run them all?

If there is no such thing, how to associate one key combination with it?

+7
eclipse unit-testing pydev pyunit
source share
3 answers

Why not:

  • define a test suite or target in an ant script (for example, this one , article below), and then map the launch configuration (external to ant script)?

Then you can use the shortcut for this startup configuration (as in this thread ).
One solution to this is to always run 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 the SO question Continuous unit testing with Pydev (Python and Eclipse)

+8
source share

Click the folder containing the tests in the pydev package explorer. Then the start menu option (for me it's not f9, but cmd + shift + F11 (OK, I'm on OSX, but I suspect it will be ctrl + shift + F11 elsewhere). Runs all the tests that it can find in subdirectories

Repeat what you need to do according to VonC answer

Then you can use the shortcut for this startup configuration (as in this thread ).
One solution to this is to always run the latest application ( F11 or ctrl + F11 )

+4
source share

Go to settings and enter keys to go to the keyboard shortcut definition page (I think it was called keys ... sorry, not on my dev machine right now). In this dialog box, you can search for commands. See if there is a run command for all tests (this can help find the current run tests that you are currently using). If you check the shortcut or define your own.

+1
source share

All Articles