|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
unittest, nose and test discovery in JythonFor a long time the way to do unittest test discovery was "nose", which
I understand did not work with Jython 2.2.1 (unittest itself works fine). Test discovery is one of a number of useful enhancements coming to the Python "unittest" module in Python 2.7 (http://www.voidspace.org.uk/python/weblog/arch_d7_2009_05_30.shtml), so this will become part of the standard library. The author has backported the test discovery mechanism and load_tests protocol for unittest from Python 2.7 to work with Python 2.4 or more recent (including Python 3) - http://pypi.python.org/pypi/discover. Has anyone tried out either nose, or the backport of the unittest discovery, with Jython 2.5.1? I'll let you know what I find out, but if anyone has already tried this, it would be good to know ... -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Jython-users mailing list Jython-users@... https://lists.sourceforge.net/lists/listinfo/jython-users |
|
|
Re: unittest, nose and test discovery in JythonOn Tue, Oct 20, 2009 at 5:52 AM, <Matthew.Webber@...> wrote:
> For a long time the way to do unittest test discovery was "nose", which > I understand did not work with Jython 2.2.1 (unittest itself works > fine). > > Test discovery is one of a number of useful enhancements coming to the > Python "unittest" module in Python 2.7 > (http://www.voidspace.org.uk/python/weblog/arch_d7_2009_05_30.shtml), so > this will become part of the standard library. The author has backported > the test discovery mechanism and load_tests protocol for unittest from > Python 2.7 to work with Python 2.4 or more recent (including Python 3) - > http://pypi.python.org/pypi/discover. > > Has anyone tried out either nose, or the backport of the unittest > discovery, with Jython 2.5.1? Nose just works with Jython 2.5.x and it is covered on the draft of the upcoming Jython Book: http://jythonpodcast.hostjava.net/jythonbook/chapter18.html#nose > I'll let you know what I find out, but if > anyone has already tried this, it would be good to know ... I haven't tried Discovery, so will be happy to hear your experiences with that. Regards, -- Leo Soto M. http://blog.leosoto.com ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Jython-users mailing list Jython-users@... https://lists.sourceforge.net/lists/listinfo/jython-users |
|
|
Re: unittest, nose and test discovery in Jython> Nose just works with Jython 2.5.x and it is covered on the draft of
> the upcoming Jython Book: > http://jythonpodcast.hostjava.net/jythonbook/chapter18.html#nose Indeed. I have been using nose with jython (from trunk) for few weeks and it works just fine. >> I'll let you know what I find out, but if >> anyone has already tried this, it would be good to know ... > > I haven't tried Discovery, so will be happy to hear your experiences with that. Discovery seems to work fine too. I have tried running specific test modules and sepcific tests within modules. Even attribute plugin works as expected. Thanks, Raghu ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Jython-users mailing list Jython-users@... https://lists.sourceforge.net/lists/listinfo/jython-users |
| Free embeddable forum powered by Nabble | Forum Help |