Changes between Version 72 and Version 73 of DeveloperGuidelinesTesting


Ignore:
Timestamp:
01/24/09 16:03:00 (16 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelinesTesting

    v72 v73  
    44
    55This page defines what our current approach versus our [wiki:BluePrintTesting BluePrint for future options]
     6
     7Test-Driven Development is a programming styles which says that you 1st write your test cases (from the [BluePrints specs]) & then proceed to make them pass.[[BR]]
     8Behaviour-Driven Development takes this further to focus on the Specification rather than the Verification using something like [http://www.codeplex.com/pyspec pyspec] or [http://pypi.python.org/pypi/PyFIT/0.8a2 PyFIT]to provide testable specs:
     9 * http://behaviour-driven.org/BDDProcess
     10 * http://fitnesse.org/FitNesse.AcceptanceTests
    611
    712[wiki:InstallationGuidelinesDeveloper#TestingSetup]
     
    8590</step>
    8691}}}
    87 !ImportError: Unable to find module for /var/www/trac/sahana3/bzr/modules/validators.py in /tmp/bittenA787wC/build_Trunk_1,
    88 {{{
    89 <step id="build" description="Compile to byte code">
    90   <python:distutils command="build"/>
    91 </step>
    92 }}}
    93 
    94 distutils failed (512)[[BR]]
    95 /usr/bin/python: can't open file '/tmp/bittenk8YjFn/build_Trunk_1/setup.py': [Errno 2] No such file or directory
     92ToDo: Amend so that it can find the {{{gluon}}} module (or configure to not follow this dependency):[[BR]]
     93{{{ImportError: Unable to find module for modules/validators.py in /tmp/bittenA787wC/build_Trunk_1}}}[[BR]]
     94ToDo: Fix Windowss:
     95{{{Error opening pylint results file ([Errno 2] No such file or directory: 'c:\\docume~1\\username\\locals~1\\temp\\bittenxx1j1x\\build_Trunk_3\\pylint-report.txt')}}}
    9696{{{
    9797<step id="test" description="Run unit tests">
     
    101101</step>
    102102}}}
     103This one is pointless for us as we don't build anything using a {{{setup.py}}}:
     104{{{
     105<step id="build" description="Compile to byte code">
     106  <python:distutils command="build"/>
     107</step>
     108}}}
    103109----
    104110DeveloperGuidelines