Skip to content

Commit

Permalink
Merge pull request #41177 from tudorbarascu/doc_tests
Browse files Browse the repository at this point in the history
document how to run specific python tests
  • Loading branch information
elpaso committed Jan 26, 2021
2 parents f4c21f5 + a2db3a1 commit e2cf82c
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsserver_accesscontrol_wcs.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer.
From build dir, run: ctest -R PyQgsServerAccessControlWCS -V
.. note:: 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
Expand Down
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsserver_accesscontrol_wfs.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer.
From build dir, run: ctest -R PyQgsServerAccessControlWFS -V
.. note:: 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
Expand Down
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer.
From build dir, run: ctest -R PyQgsServerAccessControlWFSTransactional -V
.. note:: 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
Expand Down
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer.
ctest -R PyQgsServerAccessControlWMSGetlegendgraphic -V
.. note:: 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
Expand Down
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsserver_api.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer API.
From build dir, run: ctest -R PyQgsServerApi -V
.. note:: 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
Expand Down
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsserver_apicontext.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServerApiContext class.
From build dir, run: ctest -R PyQgsServerApiContext -V
.. note:: 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
Expand Down
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsserver_cachemanager.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer.
From build dir, run: ctest -R PyQgsServerCacheManager -V
.. note:: 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
Expand Down
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsserver_landingpage.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer Landing Page Plugin.
From build dir, run: ctest -R PyQgsServerLandingPage -V
.. note:: 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
Expand Down
3 changes: 3 additions & 0 deletions tests/src/python/test_qgsserver_modules.py
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-

"""
From build dir, run: ctest -R PyQgsServerModules -V
***************************************************************************
test_qgsserver_modules.py
---------------------
Expand Down
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsserver_projectutils.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServerProject.
ctest -R PyQgsServerProjectUtils -V
.. note:: 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
Expand Down
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsserver_security.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for server security.
From build dir, run: ctest -R PyQgsServerSecurity -V
.. note:: 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
Expand Down
3 changes: 3 additions & 0 deletions tests/src/python/test_qgsserver_services.py
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-

"""
From build dir, run: ctest -R PyQgsServerServices -V
***************************************************************************
test_qgsserver_services.py
---------------------
Expand Down
2 changes: 2 additions & 0 deletions tests/src/python/test_qgsserver_settings.py
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServerSettings.
From build dir, run: ctest -R PyQgsServerSettings -V
.. note:: 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
Expand Down
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer WMS GetMap with QGIS_SERVER_IGNORE_BAD_LAYERS=true.
From build dir, run: ctest -R PyQgsServerWMSGetMap -V
From build dir, run: ctest -R PyQgsServerWMSGetMapIgnoreBadLayers -V
.. note:: This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsserver_wms_getmap_size_project.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer MaxHeight and MaxWidth Override Options.
From build dir, run: ctest -R PyQgsServerGetMapSize -V
From build dir, run: ctest -R PyQgsServerWMSGetMapSizeProject -V
.. note:: This test needs env vars to be set before the server is
configured for the first time, for this
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsserver_wms_getmap_size_server.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServer MaxHeight and MaxWidth Override Options.
From build dir, run: ctest -R PyQgsServerGetMapSize -V
From build dir, run: ctest -R PyQgsServerWMSGetMapSizeServer -V
.. note:: This test needs env vars to be set before the server is
configured for the first time, for this
Expand Down
3 changes: 3 additions & 0 deletions tests/src/python/test_qgsserverlogger.py
@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
"""QGIS Unit tests for QgsServerLogger.
From build dir, run: ctest -R PyQgsServerLogger -V
"""
__author__ = 'Eric Lemoine'
__date__ = '11/09/2018'
Expand Down

0 comments on commit e2cf82c

Please sign in to comment.