[postgis-users] Unit testing a PostGIS function

Nathan Wagner nw at hydaspes.if.org
Thu Dec 3 08:06:14 PST 2015


On Thu, Dec 03, 2015 at 04:25:49PM +0100, Adrien ANDR?? wrote:

[snip]

> how may i perform unit testing?

[snip]

> i simply tried comparing
> psql -t -A -f regress/function.sql -o function_output
> with
> function_expected
> using diff...
> 
> Is there a better way?

That's about how postgis and postgres test themselves.  You might also
look at pgtap at http://pgtap.org/ if you want something more formal.

-- 
nw


More information about the postgis-users mailing list