Menu

Nose tests?

Anonymous
2006-05-02
2013-03-15
  • Anonymous

    Anonymous - 2006-05-02

    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

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2006-05-02

      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

       
      • jcasbon

        jcasbon - 2008-08-21

        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

         
        • john jr.

          john jr. - 2009-09-08

          built-in support for nose would be great.

           
    • atthecorner

      atthecorner - 2009-09-08

      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
        

       
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.