forked from AG_QGIS/Plugin_SN_Basis
30 lines
725 B
Python
30 lines
725 B
Python
import sys
|
|
import os
|
|
import unittest
|
|
|
|
# Projekt-Root dem Suchpfad hinzufügen
|
|
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
|
if project_root not in sys.path:
|
|
sys.path.insert(0, project_root)
|
|
|
|
def main():
|
|
loader = unittest.TestLoader()
|
|
suite = unittest.TestSuite()
|
|
|
|
test_modules = [
|
|
"test_dateipruefer",
|
|
"test_stilpruefer",
|
|
"test_linkpruefer",
|
|
# "test_pruefmanager" enthält QGIS-spezifische Funktionen
|
|
]
|
|
|
|
for mod_name in test_modules:
|
|
mod = __import__(mod_name)
|
|
suite.addTests(loader.loadTestsFromModule(mod))
|
|
|
|
runner = unittest.TextTestRunner(verbosity=2)
|
|
runner.run(suite)
|
|
|
|
if __name__ == "__main__":
|
|
main()
|