536 | | Regarding the issue with testing using different languages (translations). With the tests I wrote [2] is seems that the best solution will be to use regular expressions or just Python `in` operator to test if the message contains the required information. In other words, test should be independent on language environment. |
537 | | |
538 | | I also explored the the possibility of using code coverage to evaluate the tests. It seems that with Python coverage package [4], we can get code coverage (reports) for Python library without much burden at least for basic cases (no modules involved, no ctypes). |
| 536 | Regarding the issue with testing using different languages (translations). With the tests I wrote (especially the one for [http://trac.osgeo.org/grass/attachment/ticket/2228/test_g_mremove.py g.mremove]), it seems that the best solution will be to use regular expressions or just Python `in` operator to test if the message contains the required information. In other words, test should be independent on language environment. |
| 537 | |
| 538 | I also explored the the possibility of using code coverage to evaluate the tests. It [http://trac.osgeo.org/grass/changeset/60730 seems] that with Python [https://pypi.python.org/pypi/coverage coverage] package, we can get code coverage (reports) for Python library without much burden at least for basic cases (no modules involved, no ctypes). |
548 | | Vaclav |
549 | | |
550 | | [1] http://trac.osgeo.org/grass/browser/grass/trunk/general/g.list/test_g_list.py?rev=60619 |
551 | | [2] http://trac.osgeo.org/grass/attachment/ticket/2228/test_g_mremove.py |
552 | | [3] http://trac.osgeo.org/grass/changeset/60730 |
553 | | [4] https://pypi.python.org/pypi/coverage |
554 | | |
555 | | http://trac.osgeo.org/grass/browser/sandbox/wenzeslaus/gunittest?rev=60733 |
| 548 | [http://lists.osgeo.org/pipermail/grass-dev/2014-June/069376.html report email], [source:browser/sandbox/wenzeslaus/gunittest?rev=60733 source state] |
| 549 | |
| 550 | === Week 04 === |
| 551 | |
| 552 | 1. What did you get done this week? |
| 553 | |
| 554 | This week I was not able to work on GSoC as I planed because I needed to focus on other things, some of them GRASS-related. Most importantly, I was working on the GRASS FOSS4G workshop. Specifically, I was working on the format and technology to show examples and procedures in different languages (I'm not yet ready to publish the examples). In the relation to GSoC, I hope that the format I've designed will enable creation of tests based on materials like this which was one of my ideas for the alternative use cases for testing framework. By chance I also found a code quality evaluation tool, [https://github.com/GreenSteam/pep257 pep257], which is similar to pep8 but checks the [http://legacy.python.org/dev/peps/pep-0257/ style of docstrings]. |
| 555 | |
| 556 | 2. What do you plan on doing next week? |
| 557 | |
| 558 | I will try to make advances in comparison of raster and vector maps. There are different alternatives how maps can be compared ranging from check sums of raster map's files to text-based comparison of exports of vector maps. |
| 559 | |
| 560 | The plan for week five was rewriting some of the existing tests to the new format. But I already have some tests created in previous weeks and I'm writing tests for the framework itself, so I have enough material to work with. |
| 561 | |
| 562 | 3. Are you blocked on anything? |
| 563 | |
| 564 | My weekly plan got delayed but I hope to catch up the schedule in the next two weeks. |
| 565 | |
| 566 | [http://lists.osgeo.org/pipermail/grass-dev/2014-June/069504.html report email] |