Questions tagged [unit-testing]

a software design and development method where the programmer gains confidence that individual units of source code are fit for use.

Filter by
Sorted by
Tagged with
17
votes
0answers
251 views

Unit testing for QGIS 3 plugins

There is a nice resource on unit testing for QGIS. There is also a post on this, Writing automated tests for QGIS plugins, which requires the use of docker and relies on QGIS 2 plugin - QGIS Tester. ...
21
votes
5answers
3k views

Writing automated tests for QGIS plugins

I'm looking for advice on writing automatic tests for QGIS plugins written in Python. I have written tests for Python scripts in the past using PyUnit (the unittest module), but have never done so for ...
0
votes
1answer
198 views

Creating automated tests using Google Earth Engine Python API

I'm creating a lib using the Google Earth Engine Python API. I need to test this script in travis CI. When I'm launching the unittest into my env it work but when I push to Github the test fail ...
1
vote
0answers
18 views

How to verify that all dependency libraries for PostGIS are installed correctly and working correctly? [closed]

I am attempting yet again to build PostGIS from the source to enable the fabled address-standardizer and the reverse-geocoder plugins for PostgreSQL. I have carefully discovered the source ...
1
vote
0answers
62 views

Unit testing and fixtures for ArcGIS

I have been unable to find any existing repositories or modules for building fixtures and doing unit testing for ArcGIS. I don't think this is a part of computer science that GIS has fully embraced, ...
5
votes
0answers
263 views

Unit testing ArcGIS Pro SDK?

I am wondering, if there is a possibility to unit test own code using the ArcGIs Pro 2.0 SDK. I did not find any until now, because there are plenty of static functions, classes, etc. and no ...
5
votes
0answers
620 views

ESRI ArcObjects and Unit Testing the Geoprocessor dll

I have an issue with using ArcObjects and the Geoprocessor .dll library in a UnitTest environment (MSTest) in Visual Studio. When I test a program that creates an ESRI.ArcGIS.Geoprocessor object and I ...
2
votes
0answers
111 views

Mock geometry for spatial filtering

Does anyone know how to mock IGeometry (e.g. using NSubstitute)? I want to use it within an ISpatialFilter, however I always get an exception on the last line of the code beyond. COMException: The ...
3
votes
0answers
129 views

PyQGIS reference to QGIS plugin UI in Travis unittest

I want to get unittesting under Travis to work with qgis2web. It works up to a point, but Python access within the plugin to the plugin's own UI seems not to be working. The unittest I am working on ...
6
votes
0answers
536 views

QGIS 2.8 Python Plugin Unittest Segmentation Fault 11 [closed]

UPDATE: This issue may be isolated to my MacBook. The seg fault did not occur in testing on Windows. I have put together a sample unit test for a QGIS python plugin. It is causing a Segmentation ...
10
votes
2answers
4k views

Automate testing of web app based on ArcGIS JS API

So, there are multiple products that can let you automate testing interaction with web pages. I have used Selenium IDE for some time now and it works great for creating unit tests for HTML elements on ...
1
vote
1answer
39 views

Is there a URL I can post to my geoserver that confirms that I properly installed the GDAL plugin?

I'm running geoserver in Tomcat and went through the process of installing the plugin for GDAL formats. I specifically need NITF. Is there a URL I can post to my geoserver that confirms that I ...
2
votes
0answers
208 views

How to simulate events from Openlayers 2?

I am working on a GIS API that uses OpenLayers. I am testing it using QUnit. The problem is I need to simulate clicks and trigger some events to be able to test the whole code. For example, I have a ...