Changes between Version 8 and Version 9 of GSoC/2014/TestingFrameworkForGRASS


Ignore:
Timestamp:
May 23, 2014, 1:48:34 PM (10 years ago)
Author:
wenzeslaus
Comment:

tests should have main

Legend:

Unmodified
Added
Removed
Modified
  • GSoC/2014/TestingFrameworkForGRASS

    v8 v9  
    179179== Invoking tests ==
    180180
    181 Test scripts will work when directly executed from command line and when executed from the make system.
    182 
    183 Tests should be executable by itself (i.e. should they have `main()` function) to encourage running them often. It is not clear if this should be be used by the testing framework when running multiple tests or if it is better to import.
    184 
    185 
     181Test scripts will work when directly executed from command line and when executed from the make system. When tests will executed by make system they might be executed by a dedicated "test_runner" Python script to set up the environment. However, the environment can be set up also inside the test script and not setting the environment would be the default (or other way around since setting up a different environment would be safer).
     182
     183Tests should be executable by itself (i.e. they should have `main()` function) to encourage running them often. This can be used by the framework itself rather then imports because it will simplify parallelization and outputs needs to go to files anyway (because of size) and we will collect everything from the files afterwards (so it does not matter if we will use process calls or imports).
    186184=== Example run ===
    187185