diff schema/manage_users_tests.sql @ 196:b67208d82543

Make test output more comprehensive Running all tests in one transaction ensures the final output tells about any failing test, not just in the last transaction (i.e. test script). The price is that no traces of the tests are left in the database because we have to rollback in order to have no left-over test roles in the cluster.
author Tom Gottfried <tom@intevation.de>
date Fri, 20 Jul 2018 18:31:45 +0200
parents 5dc8e734487a
children 88d21c29cf04
line wrap: on
line diff
--- a/schema/manage_users_tests.sql	Fri Jul 20 17:28:16 2018 +0200
+++ b/schema/manage_users_tests.sql	Fri Jul 20 18:31:45 2018 +0200
@@ -1,8 +1,6 @@
-BEGIN;
 --
 -- pgTAP test script for user management functions
 --
-SELECT plan(6); -- Give number of tests that have to be run
 
 SET search_path TO public, gemma, gemma_waterway, gemma_fairway;
 
@@ -51,12 +49,3 @@
     $$,
     23505, NULL,
     'No duplicate e-mail adress is allowed');
-
---
--- finish tests
---
-SELECT * FROM finish();
-
--- Rollback because we don't want test roles to stay in the cluster, which
--- would make tests not repeatable
-ROLLBACK;