Changes between Version 53 and Version 54 of GSoC/2014/TestingFrameworkForGRASS


Ignore:
Timestamp:
Aug 18, 2014, 6:51:45 AM (10 years ago)
Author:
wenzeslaus
Comment:

Weekly report 13

Legend:

Unmodified
Added
Removed
Modified
  • GSoC/2014/TestingFrameworkForGRASS

    v53 v54  
    960960=== Week 13 ===
    961961
     9621. What did you get done this week?
     963
     964I've finally closed #2105 which partially stands behind this GSoC. I used my last comment there to evaluate what I've done in GSoC using the requirements which resulted from the ticket.
     965
     966I've fixed report generation which was broken for the edge case when no test is executed because of error during set up phase.
     967
     968There were two days without tests when report generation failed due to the fact that number of executed tests from one file was zero. This is fixed and the commit causing no tests to be executed (as well as the current number of failing tests) was reverted.
     969
     970As I expected, I was not able to polish code or documentation but documentation is pretty much ready to use and the code is almost fully documented and has tests.
     971
     972Finally, during writing this email, I decided to implement a new feature, shell scripts can be now used as test files.
     973
     974Before using shell scripts, there was 11 successfully running test files and 18 failing test files, 4 successfully running testsuites and 12 failing testsuites, and 709 successfully running tests and 61 failing tests (510 of the tests are from PyGRASS module test).
     975
     9762. What do you plan on doing next week?
     977
     978Next week no coding should be done for GSoC. Instead, the final evaluation should be submitted. I also plan to prepare code for submission to Google.
     979
     980If time allows, I will also write down a TODO list or Final thoughts and create a new page for testing (and mark the GSoC one as read only).
     981
     9823. Are you blocked on anything?
     983
     984Not for me, but for GRASS the blocker is still the lack of tests. There is a lot of shell scripts which can be used as test.
     985
     986To make creating new tests from old ones simpler, I decided to add a possibility to use shell scripts in place of python scripts. in other words, a test file can by now `.py` or `.sh`. Shell script will be executed using `sh -e -x`. To implemented fast I had to drop some unused features and I made MS Windows compatibility worse but this can be fixed in the future and now we can have more tests which is more useful.
     987
     988So, feel free to move shell scripts to testsuite directories (of things they are testing) and you can even create simple tests scripts from documentation.
     989
     990However, note that writing a new tests using other things that gunittest is strongly discouraged because only by using gunittest we are able to obtain detailed test results and (optionally) extent testing by analyses such as ''valgrind''.
     991
     992Note also that alternative to allowing shell scripts directly is calling a shell script from a Python test file. The only condition is that shell script must be in data directory of the testsuite and Python file must return a return non-zero if tests failed (e.g. using `set -e`).
     993
     994[http://fatra.cnr.ncsu.edu/grassgistests/ daily test results online], ticket #2105, shell scripts becoming tests: r61653, r61658, r61660, [http://lists.osgeo.org/pipermail/grass-dev/2014-August/070426.html report email]
    962995=== Week 14 ===