Changes between Version 40 and Version 41 of DeveloperGuidelines/Testing/Selenium

08/14/12 07:34:43 (9 years ago)
Dominic König



  • DeveloperGuidelines/Testing/Selenium

    v40 v41  
    170170== Unit Tests ==
    171171There are additional unit tests available, which also require running with the IFRC_Train preopulate, 'settings.base.prepopulate = 27':
    172 {{{
    173 python -S eden -M -R applications/eden/tests/unit_tests/modules/s3/
    174 python -S eden -M -R applications/eden/tests/unit_tests/modules/s3/
    175 }}}
     173To run all unit tests:
     175python -S eden -M -R applications/eden/modules/unit_tests/
     178These unit tests are meant to detect problems early during development, which means you should run them quite often while you're still working on the code (read: before and after every little change you make) rather than expecting them to be run during QA cycles. That again means you would more often need to run tests for particular modules than the whole suite.
     180To run tests for particular modules:
     182python -S eden -M -R applications/eden/modules/unit_tests/s3/
     183python -S eden -M -R applications/eden/modules/unit_tests/eden/
     186To first implement unit test cases for the functionality you intend to implement before actually implementing it can be a very powerful development strategy especially for back-end APIs. Apart from preventing bugs, this helps you to validate your design against requirements, and to keep the implementation simple and focussed. Additionally, the test cases can be a rich source of code samples how to apply your API methods.
    177187== Load Testing ==
    178188We recommend using [Testing/Load Tsung]