QGIS/python/plugins/sextante/tests/SextanteTests.py

53 lines
2.0 KiB
Python
Raw Normal View History

2013-04-13 11:04:22 +02:00
# -*- coding: utf-8 -*-
"""
***************************************************************************
SextanteTests.py
---------------------
Date : April 2013
Copyright : (C) 2013 by Victor Olaya
Email : volayaf at gmail dot com
***************************************************************************
* *
* 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__ = 'Victor Olaya'
__date__ = 'April 2013'
__copyright__ = '(C) 2013, Victor Olaya'
# This will get replaced with a git SHA1 when you do a git archive
__revision__ = '$Format:%H$'
2013-04-15 07:16:20 +02:00
'''Convenience module to create a test suite will all SEXTANTE tests'''
2013-04-09 23:11:11 +02:00
import unittest
from sextante.tests import QgisAlgsTest
from sextante.tests import ParametersTest
from sextante.tests import ModelerAlgorithmTest
from sextante.tests import SextanteToolsTest
from sextante.tests import ScriptTest
from sextante.tests import SagaTest
from sextante.tests import GeoAlgorithmTest
from sextante.tests import GdalTest
2013-04-09 23:11:11 +02:00
def suite():
suite = unittest.TestSuite()
suite.addTests(QgisAlgsTest.suite())
suite.addTests(ModelerAlgorithmTest.suite())
suite.addTests(SagaTest.suite())
suite.addTests(GdalTest.suite())
2013-04-09 23:11:11 +02:00
suite.addTests(ScriptTest.suite())
2013-04-15 07:16:20 +02:00
suite.addTests(SextanteToolsTest.suite())
2013-04-09 23:11:11 +02:00
#suite.addTests(ParametersTest.suite())
suite.addTests(GeoAlgorithmTest.suite())
return suite
def runtests():
result = unittest.TestResult()
testsuite = suite()
testsuite.run(result)
return result