[SciPy-dev] Nose testing branch - call for - er - testing

David Cournapeau david at ar.media.kyoto-u.ac.jp
Wed Jan 9 03:59:01 EST 2008


Matthew Brett wrote:
> Hi,
>
> I've been working for a bit on replacing numpy testing with the nose
> testing framework:
>
> http://somethingaboutorange.com/mrl/projects/nose/
>
> Fernando and the guys started this at the recent Berkeley sprint, and
> I've since been slogging through.
>
> I've now done most of the work, and I was hoping some of you would
> check out the branch and see what you find:
>
> http://projects.scipy.org/scipy/scipy/browser/branches/testing_cleanup/
>
> As before, you can run module level tests with (e.g)
>
> scipy.io.test()
>
> Now the arguments are a bit different, and select the tests using the
> nose framework, such as:
>
> scipy.io.test('bench')
>
> select the tests labelled with the benchmark decorators, this:
>
> scipy.io.test('fast')
>
> corresponds to the default, and this
>
> scipy.io.test('full', verbose=10)
>
> to the usual test(10, 10) idiom.
>
> You'll see hints on the nose stuff in the scipy.testing module, and
> the scipy.sandbox.exmplpackage module.
>   
I quickly tried it, and it worked (on Ubuntu with gcc). What are the 
main advantages of using nose ? Does it make the actual testing 
framework simpler, or are there any other advantages I am not aware of ?

cheers,

David



More information about the SciPy-Dev mailing list