I've been using PyDev to do a bit of playing around with the TurboGears framework. TurboGears uses nose for its unit tests, instead of the standard pyunit, but it looks like nose is just an extension to pyunit. Is it possible to set up the "Run As" -> "Python unit-test" to run nose tests instead of pyunit?
Thanks,
- Bill
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The run-as unit-test calls the org.python.pydev.debug/pysrc/runfiles.py module with the folder/file as a parameter.
There is currently no way to specify another python runner, but you can rename that module and put in its place another one (with its original name) that would run the nose tests.
Cheers,
Fabio
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I just took py.test for a spin, outside of pydev. Since it is a later version or derivative of Nose, it appears to have the same problem as Nose.
Regardless, I was impressed and love to see support for either py.test or Nose or if indeed they are the same. whichever is anticipated to survive.
-m
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Good morning,
I've been using PyDev to do a bit of playing around with the TurboGears framework. TurboGears uses nose for its unit tests, instead of the standard pyunit, but it looks like nose is just an extension to pyunit. Is it possible to set up the "Run As" -> "Python unit-test" to run nose tests instead of pyunit?
Thanks,
- Bill
Hi Bill,
The run-as unit-test calls the org.python.pydev.debug/pysrc/runfiles.py module with the folder/file as a parameter.
There is currently no way to specify another python runner, but you can rename that module and put in its place another one (with its original name) that would run the nose tests.
Cheers,
Fabio
Hi Fabio,
I posted an easy way of doing this to the nose-users list:
http://groups.google.com/group/nose-users/browse_thread/thread/910b1d61933520d7
But, I did think while looking at runfiles.py that this file replicates a lot of the functionality of nose and could be switched out for it easily.
Perhaps it could be made configurable to use nose instead? This would offer support for more testing styles (e.g. doctest, py.test) and plugins.
Cheers,
James
built-in support for nose would be great.
I just took py.test for a spin, outside of pydev. Since it is a later version or derivative of Nose, it appears to have the same problem as Nose.
Regardless, I was impressed and love to see support for either py.test or Nose or if indeed they are the same. whichever is anticipated to survive.
-m