Changes between Version 103 and Version 104 of Dev/Tests
- Timestamp:
- 02/09/10 09:33:17 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Dev/Tests
v103 v104 1 ***** This page is under construction *****2 3 1 == 0. Before starting == 4 2 Tests are in folder ''Indicop'' and they are organized according to their type. Tests will only succeed if you have a working installation of Indico. … … 90 88 Nosetests uses this regular expression ''(?:!^|[b_.-])[Tt]est'' to fetch tests, so our naming conventions will be: 91 89 * Every file name has to end with '''indicop_test.py''' 92 * Every class has to start with Test with a capital T '''class TestIndicop(unittest.TestCase)'''90 * Every class has to start with Test with a capital T '''class !TestIndicop(unittest.!TestCase)''' 93 91 * Every function has to start with test '''def testIndicop()''' 94 92 … … 265 263 This will generate a report in ''indicop/report/pylint.txt''. 266 264 267 If you're using ''Eclipse'', I strongly suggest to configure PyDev followintthis [http://cdswaredev.cern.ch/indico/wiki/Dev/Tools#a2.CodeformattingtoolsforEclipsePyDev tutorial].265 If you're using ''Eclipse'', I strongly suggest to configure !PyDev following this [http://cdswaredev.cern.ch/indico/wiki/Dev/Tools#a2.CodeformattingtoolsforEclipsePyDev tutorial]. 268 266 269 267 … … 379 377 'Firefox on Linux'] 380 378 }}} 381 The use ''HubURL'' and '' HubPort'' are straightforward. ''HubEnv'' contains the list of browsers and OS on which you want to run your functional tests. A list of the available environments can be found here http://macuds04.cern.ch:4444/console. At CERN, our hub is on a iMac, which also has 2 RCs (Firefox and Safari). The rest of the RCs are instantiated fromVirtualBoxes on the iMac.379 The use ''HubURL'' and ''!HubPort'' are straightforward. ''!HubEnv'' contains the list of browsers and OS on which you want to run your functional tests. A list of the available environments can be found here http://macuds04.cern.ch:4444/console. At CERN, our hub is on a iMac, which also has 2 RCs (Firefox and Safari). The rest of the RCs are instantiated from !VirtualBoxes on the iMac. 382 380 383 381 === 6.b. Running tests ===
