Skip to content
Permalink
Browse files

[Processing][Tests] Improve Processing GRASS7 testsuite

  • Loading branch information
Médéric RIBREUX
Médéric RIBREUX committed Jun 11, 2016
1 parent 3b998d2 commit dbd1050879bf69689e81320e80ebc55ee8801f40
@@ -9,5 +9,6 @@ IF(ENABLE_TESTS)
ADD_PYTHON_TEST(ProcessingParametersTest ParametersTest.py)
ADD_PYTHON_TEST(ProcessingQgisAlgorithmsTest QgisAlgorithmsTest.py)
ADD_PYTHON_TEST(ProcessingGdalAlgorithmsTest GdalAlgorithmsTest.py)
ADD_PYTHON_TEST(ProcessingGrass7AlgorithmsTest Grass7AlgorithmsTest.py)
ADD_PYTHON_TEST(ProcessingGrass7AlgorithmsImageryTest Grass7AlgorithmsImageryTest.py)
ADD_PYTHON_TEST(ProcessingGrass7AlgorithmsRasterTest Grass7AlgorithmsRasterTest.py)
ENDIF(ENABLE_TESTS)
@@ -0,0 +1,58 @@
# -*- coding: utf-8 -*-

"""
***************************************************************************
Grass7AlgorithmsImageryTest.py
------------------------------
Date : May 2016
Copyright : (C) 2016 by Médéric Ribreux
Email : mederic dot ribreux at medspx dot fr
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""

__author__ = 'Médéric Ribreux'
__date__ = 'May 2016'
__copyright__ = '(C) 2016, Médéric Ribreux'

# This will get replaced with a git SHA1 when you do a git archive

__revision__ = ':%H$'

import AlgorithmsTestBase

import nose2
import shutil

from qgis.testing import (
start_app,
unittest
)


class TestGrass7AlgorithmsImageryTest(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest):

@classmethod
def setUpClass(cls):
start_app()
from processing.core.Processing import Processing
Processing.initialize()
cls.cleanup_paths = []

@classmethod
def tearDownClass(cls):
for path in cls.cleanup_paths:
shutil.rmtree(path)

def test_definition_file(self):
return 'grass7_algorithms_imagery_tests.yaml'


if __name__ == '__main__':
nose2.main()
@@ -2,8 +2,8 @@

"""
***************************************************************************
Grass7AlgorithmTests.py
-----------------------
Grass7AlgorithmsRasterTest.py
-----------------------------
Date : May 2016
Copyright : (C) 2016 by Médéric Ribreux
Email : mederic dot ribreux at medspx dot fr
@@ -36,7 +36,7 @@
)


class TestGrass7Algorithms(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest):
class TestGrass7AlgorithmsRasterTest(unittest.TestCase, AlgorithmsTestBase.AlgorithmsTest):

@classmethod
def setUpClass(cls):
@@ -51,7 +51,7 @@ def tearDownClass(cls):
shutil.rmtree(path)

def test_definition_file(self):
return 'grass7_algorithm_tests.yaml'
return 'grass7_algorithms_raster_tests.yaml'


if __name__ == '__main__':
@@ -0,0 +1,198 @@
# Here is a list of grass7 algorithms without test units

## Raster algorithms

* r.basins.fill
* r.blend.combine
* r.blend.rgb
* r.buffer
* r.buffer.lowmem
* r.carve
* r.category
* r.category.out
* r.circle
* r.clump
* r.coin
* r.colors
* r.colors.out
* r.colors.stddev
* r.composite
* r.contour.level
* r.contour.step
* r.cost.coordinates
* r.cost.points
* r.cost.raster
* r.covar
* r.cross
* r.describe
* r.distance
* r.drain
* r.fill.dir
* r.fillnulls
* r.flow
* r.flow.aspect
* r.flow.aspect.barrier
* r.flow.barrier
* r.grow
* r.grow.distance
* r.gwflow
* r.his
* r.horizon
* r.horizon.height
* r.in.lidar
* r.in.lidar.info
* r.info
* r.kappa
* r.lake.coords
* r.lake.layer
* r.latlong
* r.li.cwed
* r.li.cwed.ascii
* r.li.dominance
* r.li.dominance.ascii
* r.li.edgedensity
* r.li.edgedensity.ascii
* r.li.mpa
* r.li.mpa.ascii
* r.li.mps
* r.li.mps.ascii
* r.li.padcv
* r.li.padcv.ascii
* r.li.padrange
* r.li.padrange.ascii
* r.li.padsd
* r.li.padsd.ascii
* r.li.patchdensity
* r.li.patchdensity.ascii
* r.li.patchnum
* r.li.patchnum.ascii
* r.li.pielou
* r.li.pielou.ascii
* r.li.renyi
* r.li.renyi.ascii
* r.li.richness
* r.li.richness.ascii
* r.li.shannon
* r.li.shannon.ascii
* r.li.shape
* r.li.shape.ascii
* r.li.simpson
* r.li.simpson.ascii
* r.mapcalc
* r.mask.rast
* r.mask.vect
* r.median
* r.mfilter
* r.mfilter.fp
* r.mode
* r.neighbors
* r.null
* r.out.gridatb
* r.out.ppm
* r.out.vrml
* r.param.scale
* r.patch
* r.plane
* r.profile
* r.quant
* r.quantile
* r.random
* r.random.cells
* r.random.raster
* r.random.surface
* r.reclass
* r.reclass.area.greater
* r.reclass.area.lesser
* r.recode
* r.regression.line
* r.regression.multi
* r.relief
* r.relief.scaling
* r.report
* r.resamp.bspline
* r.resamp.filter
* r.resamp.interp
* r.resamp.rst
* r.resamp.stats
* r.resample
* r.rescale
* r.rescale.eq
* r.rgb
* r.ros
* r.series
* r.series.accumulate
* r.series.interp
* r.shade
* r.sim.sediment
* r.sim.water
* r.slope (il y en a 2)
* r.slope.aspect
* r.solute.transport
* r.spread
* r.spreadpath
* r.statistics
* r.stats
* r.stats.quantile.out
* r.stats.quantile.rast
* r.stream.extract
* r.sum
* r.sun
* r.sunhours
* r.sunmask.datetime
* r.sunmask.position
* r.support
* r.surf.area
* r.surf.contour
* r.surf.fractal
* r.surf.gauss
* r.surf.idw
* r.surf.random
* r.terraflow
* r.texture
* r.thin
* r.tile
* r.tileset
* r.to.vect
* r.topidx
* r.topmodel
* r.topmodel.topidxstats
* r.transect
* r.univar
* r.uslek
* r.usler
* r.viewshed
* r.volume
* r.walk.coords
* r.walk.points
* r.walk.rast
* r.water.outlet
* r.watershed
* r.what.color
* r.what.coords
* r.what.points

## Imagery algorithms

* i.albedo
* i.aster.toar
* i.cca
* i.colors.enhance
* i.eb.evapfr
* i.evapo.time
* i.fft
* i.his.rgb
* i.ifft
* i.in.spotvgt
* i.landsat.acca
* i.landsat.toar
* i.pca
* i.rectify
* i.tasscap
--* i.topo.coor.ill
* i.topo.corr



## Vector algorithms

We need to handle gml for output and input for GRASS7 algorithms before creating tests !

0 comments on commit dbd1050

Please sign in to comment.
You can’t perform that action at this time.