[GRASS-dev] [GRASS GIS] #2663: Add test for r.watershed module

#2663: Add test for r.watershed module
-------------------------+-------------------------
Reporter: swendel621 | Owner: grass-dev@…
     Type: enhancement | Status: new
Priority: normal | Milestone: 7.0.1
Component: Default | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
I built a test for the r.watershed module to be incorporated into the
software that can be found here:

https://github.com/swwendel/GRASS-r.Watershed-UnitTest

Thanks!
Stephanie Wendel

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2663&gt;
GRASS GIS <http://grass.osgeo.org>

#2663: Add test for r.watershed module
--------------------------+--------------------------------
  Reporter: swendel621 | Owner: wenzeslaus
      Type: enhancement | Status: new
  Priority: normal | Milestone: 7.1.0
Component: Tests | Version: unspecified
Resolution: | Keywords: patch, r.watershed
       CPU: Unspecified | Platform: Unspecified
--------------------------+--------------------------------
Changes (by wenzeslaus):

* owner: grass-dev@… => wenzeslaus
* keywords: => patch, r.watershed
* component: Default => Tests
* milestone: 7.0.1 => 7.1.0

Comment:

I committed the test together with few style-related changes in r65145.

Thanks, Stephanie!

I suggest to close the ticket after the the automated run is successful.

For completeness, I'm attaching file with changes between original and the
version I committed and here are also the steps I used for integrating it
and testing it (GRASS GIS session active):

{{{
#!bash
# prepare dir and files
cd raster/r.watershed/
mkdir testsuite
geany r_watershed_test.

# add to svn
cd ..
svn add testsuite
/script/in/addons/tools/module_svn_propset.sh
testsuite/r_watershed_test.py
cd testsuite

# run the test
python r_watershed_test.py

# automatically introduce as much from PEP8 as possible
autopep8 -i r_watershed_test.py

# check the Python style and syntax
pep8 r_watershed_test.py
pylint r_watershed_test.py
# edit the file accordingly

# run the test again
python r_watershed_test.py

# publish changes
svn st
svn commit -m "r.watershed: ..."

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2663#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>