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
0 votes
0 answers
5 views

add a layer in ipyleaflet map that is always loading

I'm building a little statebar that dispays when layers are loading on the map. The idea is to write informaions to the end user like: "XX layers loading out of YY". It seems to work and I'm ...
user avatar
25 votes
1 answer
544 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. ...
user avatar
  • 929
0 votes
1 answer
490 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 ...
user avatar
1 vote
0 answers
21 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 ...
user avatar
1 vote
0 answers
160 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, ...
user avatar
  • 315
6 votes
0 answers
726 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 ...
user avatar
6 votes
0 answers
353 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 ...
user avatar
  • 307
2 votes
0 answers
125 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 ...
user avatar
3 votes
0 answers
143 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 ...
user avatar
  • 5,582
6 votes
0 answers
574 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 ...
user avatar
1 vote
1 answer
44 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 ...
user avatar
  • 121
11 votes
2 answers
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 ...
user avatar
2 votes
0 answers
222 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 ...
user avatar
23 votes
5 answers
4k 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 ...
user avatar