Changeset 124

Show
Ignore:
Timestamp:
08/02/06 15:52:55 (2 years ago)
Author:
mk
Message:

Described in README how to run Cheesecake unit tests.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mk/README

    r121 r124  
    5151called the Cheesecake index! 
    5252 
    53 Requirements 
    54 ------------ 
    55  
    56 * `pylint <http://www.logilab.org/projects/pylint>`_ is required for 
    57   part of the code kwalitee index computation  
    58 * `setuptools <http://peak.telecommunity.com/DevCenter/setuptools>`_ is 
    59   required for testing installation 
    60  
    6153Usage examples 
    6254-------------- 
     
    10193    For more options, run cheesecake.py with -h or --help. 
    10294 
     95Requirements 
     96------------ 
     97 
     98* `pylint <http://www.logilab.org/projects/pylint>`_ is required for 
     99  part of the code kwalitee index computation  
     100* `setuptools <http://peak.telecommunity.com/DevCenter/setuptools>`_ is 
     101  required for testing installation 
     102 
    103103Obtaining the source code 
    104104------------------------- 
     
    139139:Note: Generating documentation requires `epydoc <http://epydoc.sourceforge.net/>`_ 
    140140       tool installed. 
     141 
     142Unit tests 
     143---------- 
     144 
     145We use `nose <http://somethingaboutorange.com/mrl/projects/nose/>`_ for automatic 
     146testing of our project, so if you want to test Cheesecake on your machine, please 
     147install that first. Running standard set of Cheesecake unit test is as easy as:: 
     148 
     149  python setup.py test 
     150 
     151This command is equivalent of:: 
     152 
     153  nosetests --verbose --with-doctest --doctest-tests --include unit --exe 
     154 
     155We also have a set of functional tests, which can be run by issuing this command:: 
     156 
     157  nosetests --verbose --include functional 
     158 
     159Functional tests can take a bit longer to complete, as they test cheesecake_index 
     160script as a whole (opposed to testing modules and classes separately). 
     161 
     162If you happen to found any of our tests failing, please don't hesitate to contact 
     163us, either via 
     164`cheesecake-devel mailing list <http://lists.sourceforge.net/lists/listinfo/cheesecake-devel>`_ 
     165or via `Cheesecake Trac <http://pycheesecake.org/>`_. 
    141166 
    142167Buildbot 
  • branches/mk/setup.py

    r123 r124  
    1111os.environ['NOSE_DOCTEST_TESTS'] = 'True' 
    1212os.environ['NOSE_INCLUDE'] = 'unit' 
     13os.environ['NOSE_INCLUDE_EXE'] = 'True' 
    1314 
    1415setup(