[postgis-users] PostGIS 2.0.2

George Silva georger.silva at gmail.com
Tue Dec 4 08:30:32 PST 2012


> Unfortunately testing for EXTENSION can't be automated without a
> significant
> refactoring of the testing framework, making them more easily broken.
>

On side note, do you guys use any kind of unit test/integration testing
inside PostgreSQL?

On a project of mine I found pgTAP to be **very** useful.

I don't think it supports extensions yet, but it supports schema testing,
such as:

CREATE OR REPLACE FUNCTION mytest.testschema()
RETURNS SETOF TEXT LANGUAGE plpgsql AS $$
BEGIN

    RETURN NEXT has_table('table_a');
END;
$$;

http://pgtap.org/

-- 
George R. C. Silva

Desenvolvimento em GIS
http://geoprocessamento.net
http://blog.geoprocessamento.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20121204/449d7311/attachment.html>


More information about the postgis-users mailing list