Changes between Version 16 and Version 17 of GSoC/2014/TestingFrameworkForGRASS


Ignore:
Timestamp:
May 25, 2014, 8:36:56 PM (10 years ago)
Author:
wenzeslaus
Comment:

note on documentation for tests

Legend:

Unmodified
Added
Removed
Modified
  • GSoC/2014/TestingFrameworkForGRASS

    v16 v17  
    178178Everything should go (primarily) to files and directories with some defined structure. Something would have to gather information from files and build some main pages and summary pages. The advantage of having everything in files is that it might be more robust and that it can easily run in parallel. However, gathering of information afterwards can be challenging. Files are really the only option how to integrate valgrind outputs.
    179179
    180 
    181180There is `TextTestRunner` in `unittest`, the implementation will start from there. For now, the testing framework will focus on HTML output. However, the goal is something like `GRASSTestRunner` which could do multiple outputs simultaneously (in the future) namely HTML, XML (there might be some reusable XML schemes for testing results) and TXT (might be enriched by some reStructuredText or Markdown or really plain). Some (simple) text (summary) should go in to standard output in parallel to output to files.
    182181
     
    209208A page for `testsuite` will be the "central" page of the report. There will be list (table) of all test scripts/modules, their `TestCase` classes, and their `test_` functions/methods with basic info and links to details. Considering amount of details there will be probably a separate page for each `test_` function/method.
    210209
    211 Details to one test (not all have to be implemented):
     210Details for one test (not all have to be implemented):
    212211
    213212 * standard output and standard error output of tests
     
    220219  * it might be unclear what code to actually include (you can see names of modules, function, you know in which directory test suite was)
    221220 * the testing code to see what exactly was tested and failed
    222  * pictures generated from maps for tests which were not successful (might be applied also to other types but this is really a bonus)
     221 * documentation of testing method and `TestCase` class (extracted docstrings)
     222 * related commit/revision number or ticket number
     223  * in theory, each commit or closed ticket should have a test which proves that it works
     224  * this can be part of test method (`test_*`) docstring and can be extracted by testing framework
     225 * pictures generated from maps for tests which were not successful (might be applied also to other types but this all is really a bonus)
    223226
    224227Generally, the additional data can be linked or included directly (e.g. with some folding in HTML). This needs to be investigated.