<div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Unfortunately testing for EXTENSION can't be automated without a significant<br>


refactoring of the testing framework, making them more easily broken.<br></blockquote><div class="gmail_quote"><br></div>On side note, do you guys use any kind of unit test/integration testing inside PostgreSQL?<div><br>

</div><div>On a project of mine I found pgTAP to be **very** useful.</div><div><br></div><div>I don't think it supports extensions yet, but it supports schema testing, such as:</div><div><br></div><div>CREATE OR REPLACE FUNCTION mytest.testschema()</div>

<div>RETURNS SETOF TEXT LANGUAGE plpgsql AS $$</div><div>BEGIN</div><div><br></div><div>    RETURN NEXT has_table('table_a');</div><div>END;</div><div>$$;</div><div><br></div><div><a href="http://pgtap.org/">http://pgtap.org/</a><br>

</div><div><br></div></div>-- <br>George R. C. Silva<br><br>Desenvolvimento em GIS<br><a href="http://geoprocessamento.net" target="_blank">http://geoprocessamento.net</a><br><a href="http://blog.geoprocessamento.net" target="_blank">http://blog.geoprocessamento.net</a><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">

</div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">

</div><br>
</div>