Changes between Version 103 and Version 104 of Dev/Tests


Ignore:
Timestamp:
02/09/10 09:33:17 (3 years ago)
Author:
jnguyenx
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Dev/Tests

    v103 v104  
    1 ***** This page is under construction ***** 
    2  
    31== 0. Before starting == 
    42Tests are in folder ''Indicop'' and they are organized according to their type. Tests will only succeed if you have a working installation of Indico. 
     
    9088Nosetests uses this regular expression ''(?:!^|[b_.-])[Tt]est'' to fetch tests, so our naming conventions will be: 
    9189    * 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)''' 
    9391    * Every function has to start with test '''def testIndicop()''' 
    9492 
     
    265263This will generate a report in ''indicop/report/pylint.txt''. 
    266264 
    267 If you're using ''Eclipse'', I strongly suggest to configure PyDev followint this [http://cdswaredev.cern.ch/indico/wiki/Dev/Tools#a2.CodeformattingtoolsforEclipsePyDev tutorial]. 
     265If you're using ''Eclipse'', I strongly suggest to configure !PyDev following this [http://cdswaredev.cern.ch/indico/wiki/Dev/Tools#a2.CodeformattingtoolsforEclipsePyDev tutorial]. 
    268266 
    269267 
     
    379377                  'Firefox on Linux'] 
    380378}}} 
    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 from VirtualBoxes on the iMac. 
     379The 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. 
    382380 
    383381=== 6.b. Running tests ===