Changes between Version 4 and Version 5 of GSoC/2014/TestingFrameworkForGRASS


Ignore:
Timestamp:
May 21, 2014, 3:57:25 PM (10 years ago)
Author:
wenzeslaus
Comment:

naming conventions for files and test methods

Legend:

Unmodified
Added
Removed
Modified
  • GSoC/2014/TestingFrameworkForGRASS

    v4 v5  
    148148Resources:
    149149 * http://grasswiki.osgeo.org/wiki/Test_Suite#Modules
     150
     151
     152== Naming conventions ==
     153
     154The [https://docs.python.org/2/library/unittest.html#unittest.TestLoader.discover unittest.TestLoader.discover] function requires that module names ''are importable (i.e. are valid Python identifiers)''. Consequently, names of files with tests should contain dots (except for the `.py` suffix).
     155
     156Methods with tests must start with `test_` to be recognized by the [https://docs.python.org/2/library/unittest.html#organizing-test-code unittest] framework.