[ckan-dev] nose plugin for ckan

David Raznick kindly at gmail.com
Fri Feb 4 23:36:49 UTC 2011


Hello

I have pushed some code to branch bug_955_tidy_up_tests. That I hope this
will be a start to sorting out the test situation once and for all.

I have added a ckan nose plugin.  It does 2 things...

 1.   Make sure init_db at is always run at the class_setup stage.
 2.   Add a config option to nosetests called ckan_ini.  You can specify
what ini you want to use for the tests.
       i.e  you can run nosetests  --ckan_ini=myini.ini

I think that we should develop the plugin further for our needs and add more
config options.  For example it will be easy to add a --fast option that
does not run the functional tests.  The plugin api is very rich and easy.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20110204/b184ea45/attachment-0001.html>


More information about the ckan-dev mailing list