[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Existing test runs, was re: Database updates
- Subject: Existing test runs, was re: Database updates
- From: Chris Travers <..hidden..>
- Date: Fri, 15 Jul 2011 16:43:39 -0700
Just as another note on test safety.
The following are listed in decreasing orders of safety:
1) Doesn't touch the database
2) Touches the database, but is never intended to commit. Direct sql
scripts partition data using negative id's to the extent possible in
case of accidental commit
PGUSER=postgres PGPASSWORD='foo' PGDATABASE='lsmb13test6'
LSMB_TEST_DB=1 make test
3) Has a number of safety features built in but errors in the code
COULD potentially drop a database that currently exists if they exist
(some recently corrected). Not recommended in production
environments. Runs the same tests as above, but against a new
database freshly loaded from Pg-database and sql/modules before
cleaning itself up.
PGPASSWORD='foo' LSMB_NEW_DB='foo' PGUSER=postgres LSMB_TEST_DB=1
LSMB_ADMIN_LNAME='Test' LSMB_LOAD_GIFI=UCOA-Form990 make test
4) May write to the db. DO NOT RUN AGAINST PRODUCTION
LSMB_USER='foo' LSMB_PASS='bar' PGDATABASE='baz'
LSMB_BASE_URL='http://localhost/ledgersmb_13/' LSMB_TEST_LWP=1 make