[open-ils-commits] [GIT] Evergreen ILS branch master updated. 3c8631534f56944351076528b212b59fa390a542

Evergreen Git git at git.evergreen-ils.org
Thu Nov 14 18:18:46 EST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  3c8631534f56944351076528b212b59fa390a542 (commit)
      from  ac56aa414592f870d061156676f98a4303ea421d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3c8631534f56944351076528b212b59fa390a542
Author: Dan Scott <dscott at laurentian.ca>
Date:   Thu Nov 14 18:17:58 2013 -0500

    Add basic docs for testing with pgTAP
    
    This can be expanded to describe how to create pgTAP tests later. For
    now, let's help people actually set up their environment and test.
    
    Signed-off-by: Dan Scott <dscott at laurentian.ca>

diff --git a/docs/development/pgtap.txt b/docs/development/pgtap.txt
new file mode 100644
index 0000000..2e93926
--- /dev/null
+++ b/docs/development/pgtap.txt
@@ -0,0 +1,39 @@
+Developing with pgTAP tests
+===========================
+
+Setting up pgTAP on your development server
+-------------------------------------------
+
+Currently, Evergreen pgTAP tests expect a version of pgTAP (0.93)
+that is not yet available in the packages for most Linux distributions.
+Therefore, you will have to install pgTAP from source as follows:
+
+. Download, make, and install pgTAP on your database server. pgTAP can
+  be downloaded from http://pgxn.org/dist/pgtap/ and the instructions
+  for building and installing the extension are available from
+  http://pgtap.org/documentation.html
+
+. Create the pgTAP extension in your Evergreen database. Using `psql`,
+  connect to your Evergreen database and then issue the command:
++
+[source,sql]
+------------------------------------------------------------------------------
+CREATE EXTENSION pgtap;
+------------------------------------------------------------------------------
+
+Running pgTAP tests
+-------------------
+The pgTAP tests can be found in subdirectories of `Open-ILS/src/sql/Pg/`
+as follows:
+
+* `t`: contains pgTAP unit tests that can be run on a freshly installed
+  Evergreen database
+* `live_t`: contains pgTAP unit tests meant to be run on an Evergreen
+  database that also has had the "concerto" sample data loaded on it
+
+To run the pgTAP unit and regression tests, use the `pg_prove` command.
+For example, from the Evergreen source directory, you can issue the
+command:
+`pg_prove -U evergreen Open-ILS/src/sql/Pg/t Open-ILS/src/sql/Pg/t/regress`
+
+
diff --git a/docs/root.txt b/docs/root.txt
index 2168940..2108c6d 100644
--- a/docs/root.txt
+++ b/docs/root.txt
@@ -391,6 +391,7 @@ communication protocols and standards used in Evergreen.
 // Push titles down one level.
 :leveloffset: 1
 
+include::development/pgtap.txt[]
 include::development/intro_opensrf.txt[]
 include::development/updating_translations_launchpad.txt[]
 

-----------------------------------------------------------------------

Summary of changes:
 docs/development/pgtap.txt |   39 +++++++++++++++++++++++++++++++++++++++
 docs/root.txt              |    1 +
 2 files changed, 40 insertions(+), 0 deletions(-)
 create mode 100644 docs/development/pgtap.txt


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list