[IronPython] ironpython and NUNIT

Michael Foord fuzzyman at voidspace.org.uk
Thu Jun 26 13:02:08 CEST 2008


Curt Hagenlocher wrote:
> I haven't tried to use Alex's adapter, though it looks rather 
> interesting.  The reason why the adapter is necessary is that 
> frameworks like NUnit rely on the ability to attach CLR attributes to 
> your methods, something which we can't do today for IronPython.
>  
> Have you considered using the native "unittest" library?  Granted, it 
> doesn't have "a nice GUI", but it works pretty well.  The module 
> itself is part of the standard CPython library, which we're not yet 
> including with IronPython so you'll have to download it yourself from 
> python.org <http://python.org>.  You can see documentation for it at 
> http://docs.python.org/lib/module-unittest.html.
>  
> One advantage of unittest.py is that it should work the same for 
> IronPython 1.x and 2.x because it's implemented in pure Python and 
> therefore not dependent on the IronPython hosting APIs.
>

+1

Our whole test framework at Resolver Systems is built on unittest and it 
works very well with IronPython (as well as being the 'standard' Python 
testing framework).

Michael Foord

> On Wed, Jun 25, 2008 at 8:17 AM, Kaveripakam, Sathish 
> <Sathish.Kaveripakam at phonak.com 
> <mailto:Sathish.Kaveripakam at phonak.com>> wrote:
>
>     Hello All,
>      
>     i am trying to use the NUNIT with Ironpython using VS2005, .NET
>     2.0  version (
>     http://blog.bittercoder.com/CommentView,guid,ef0c495d-6804-4d6e-9537-ce238b6047c3.aspx#commentstart ),
>     but I am not able to get the things going. Could any one had
>     issues with the usage ?
>      
>     Are there any test frameworks available which will work with iron
>     python ? any pointers/hints are welcome.
>
>     ------------------------------------------------------------------------
>     _Legal Notice:_
>     The information in this electronic transmission may contain
>     confidential or legally privileged information and is intended
>     solely for the individual(s) named above. If you are not an
>     intended recipient or an authorized agent, you are hereby notified
>     that reading, distributing, or otherwise disseminating, copying or
>     taking any action based on the contents of this transmission is
>     strictly prohibited. Any unauthorized interception of this
>     transmission is illegal under law. If you have received this
>     transmission in error, please notify the sender by telephone [at
>     the number indicated above/on +41 58 928 0101] as soon as possible
>     and then destroy all copies of this transmission. 
>     ------------------------------------------------------------------------
>
>
>     _______________________________________________
>     Users mailing list
>     Users at lists.ironpython.com <mailto:Users at lists.ironpython.com>
>     http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.ironpython.com
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
>   




More information about the Ironpython-users mailing list