Changes between Version 31 and Version 32 of GSoC/2014/TestingFrameworkForGRASS


Ignore:
Timestamp:
Jun 1, 2014, 5:04:38 PM (10 years ago)
Author:
wenzeslaus
Comment:

testing GRASS modules which are Python scripts

Legend:

Unmodified
Added
Removed
Modified
  • GSoC/2014/TestingFrameworkForGRASS

    v31 v32  
    161161python .../gunittest/grass_main_test_runner.py discover -s lib/python/temporal/ -p unittests_register.py
    162162}}}
     163
     164GRASS modules which are Python scripts have one or more dots in the file name. This prevents them from being imported and so from being used in the tests directly. They itself can run themselves as tests but the testing framework is not able to run them using `unittest`'s methods. Similarly, tests cannot load the functions from the file because this would require import. `Doctest` requires importable files too, so using it instead of `unittest` to test functions inside a script will not help.
    163165=== Dealing with process termination ===
    164166