Changes between Version 111 and Version 112 of DeveloperGuidelinesTesting
- Timestamp:
- 08/08/11 21:17:25 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelinesTesting
v111 v112 59 59 * http://zesty.ca/scrape/ 60 60 * [http://pycon.blip.tv/file/3261277 Lightning Talk] (2.30) 61 62 61 63 == Unit Tests == 62 64 "Building the Code Right" … … 83 85 [http://readthedocs.org/docs/nose/ nose] is a python module/command which finds and runs tests. nose is suitable as it has been widely adopted in the python community, allows standard test specifications and is highly configurable and customisable, without confusing "magical" behaviour. Documentation is [http://readthedocs.org/docs/nose/ here]. 84 86 85 To work with web2py, a plugin has been written, which means that nosetests isn't run in the normal way, although we'll aim for that as much as possible. Extra arguments are just passed on to nose, so the command's argument format is the same as original asthe original nosetest command.87 To cope with web2py, a wrapper and a plugin has been written, which means that nosetests isn't run in the normal way, although we'll aim for that as much as possible. Extra arguments are just passed on to nose by the wrapper command, so the command's argument format is the same as that of the original nosetest command. 86 88 87 89 To run the unit tests in Sahana Eden via nose, there is a nose.py command in the tests/ folder within the application. Note: This command is not installed outside of the application as it is designed for developers, who may have several versions of Sahana Eden at any one time.