Changes between Version 31 and Version 32 of GSoC/2014/TestingFrameworkForGRASS
- Timestamp:
- 06/01/14 17:04:38 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GSoC/2014/TestingFrameworkForGRASS
v31 v32 161 161 python .../gunittest/grass_main_test_runner.py discover -s lib/python/temporal/ -p unittests_register.py 162 162 }}} 163 164 GRASS 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. 163 165 === Dealing with process termination === 164 166