<p>In t/postgresql-rename-table-and-field.t:</p>
<pre style='color:#555'>&gt; +use Test::Exception;
&gt; +use DBI;
&gt; +use SQL::Translator;
&gt; +use SQL::Translator::Parser::PostgreSQL;
&gt; +use SQL::Translator::Diff;
&gt; +
&gt; +eval &quot;use DBD::Pg&quot;;
&gt; +plan skip_all =&gt; &quot;DBD::Pg required&quot; if $@;
&gt; +
&gt; +eval &quot;use Test::PostgreSQL&quot;;
&gt; +plan skip_all =&gt; &quot;Test::PostgreSQL required&quot; if $@;
&gt; +
&gt; +my ( $pgsql, $dbh , $ddl, $ret );
&gt; +
&gt; +lives_ok { $pgsql = Test::PostgreSQL-&gt;new() } &quot;create PostgreSQL instance&quot;;
&gt; +lives_ok { $dbh = DBI-&gt;connect($pgsql-&gt;dsn) } &quot;dbi connect&quot;;
</pre>
<p>Given that continuing if these fail is pointless, there's no point in wrapping them in lives_ok (which is effectively an eval).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/dbsrgits/sql-translator/pull/44/files#r16600181">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/302594__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNDMzNjg1NSwiZGF0YSI6eyJpZCI6NDAzODg2NjF9fQ==--6dd877b4533ba79f571a06e474e9b6c00789ba7f.gif" width="1" /></p>