lostdorje
lostdorje

Reputation: 6460

pydev nosetests test run

Seems like a silly question but I've been unable to figure it out...

I'd like to use eclipse/pyunit to run all my tests. I've configured the test runner to be the nose test runner.

Now I'd like for pyunit to use nose

Upvotes: 4

Views: 4086

Answers (2)

Fabio Zadrozny
Fabio Zadrozny

Reputation: 25362

You can right-click a folder/file and choose Run as > Python unittest or if you have the file open in an editor, you can use 'Ctrl+F9' to run the tests (and even filter to select the test(s) you want to run).


Note: for this to work with nose you have to select the nose test runner in the preferences (window > preferences > pydev > pyunit) -- and the same is true if you're using the py.test runner (but note that if you're using regular unittest tests, the default runner should work fine).

Upvotes: 7

gunzapper
gunzapper

Reputation: 457

I found this solution:

  1. On the main menu, go to Windows->Preference->PyDev->PyUnit
  2. Under "test runner" choose Nose test runner.
  3. Apply
  4. Ok

Upvotes: 7

Related Questions