We can uninstall simple pgunit using the following steps:
- PGUnitDrop.sql has the code you can use to remove all PGUnit code from the database:Â https://github.com/adrianandrei-ca/pgunit/blob/master/PGUnitDrop.sql.
- We will copy the content from the browser:Â
Figure 11.14 – Un-installation of the simple pgunit
- Because we have installed all of the simple pgunit library inside our separate pgunit schema, we modify the preceding script to look like the following:Â
--
-- Clears the PG Unit functions
--
--
drop function pgunit.test_run_suite(TEXT);
drop function pgunit.test_run_all();
drop function pgunit.test_run_condition(proc_name text);
drop function pgunit.test_build_procname(parts text[], p_from integer, p_to integer);
drop function pgunit.test_get_procname(test_case_name text, expected_name_count integer, result_prefix text);
drop function pgunit.test_terminate(db VARCHAR);
drop function pgunit.test_autonomous(p_statement...