[Checkins] SVN: z3c.saconfig/trunk/ Move testing information to INSTALL.txt.

Martijn Faassen faassen at infrae.com
Thu Jun 19 18:21:37 EDT 2008


Log message for revision 87580:
  Move testing information to INSTALL.txt.
  

Changed:
  A   z3c.saconfig/trunk/INSTALL.txt
  U   z3c.saconfig/trunk/src/z3c/saconfig/README.txt

-=-
Added: z3c.saconfig/trunk/INSTALL.txt
===================================================================
--- z3c.saconfig/trunk/INSTALL.txt	                        (rev 0)
+++ z3c.saconfig/trunk/INSTALL.txt	2008-06-19 22:21:36 UTC (rev 87580)
@@ -0,0 +1,47 @@
+Installation
+************
+
+Introduction
+============
+
+Normally this code would be set up an as egg. If you want help with
+development, you can install it as a buildout.
+
+Installation
+============
+
+This package can be checked out from
+svn://svn.zope.org/repos/main/z3c.saconfig/trunk. You can then execute
+the buildout to download and install the requirements and install the
+test runner. Using your desired python run::
+
+  $ python bootstrap.py
+
+If installation configuration changes later, you need to run::
+
+  $ bin/buildout
+
+Running the tests
+=================
+
+After running the buildout, you can run the test script like this::
+
+  $ bin/test
+
+By default, the tests are run against an in-memory SQLite database.
+
+To enable testing with your own database set the ``TEST_DSN`` and
+``TEST_DSN2`` environment variables to your sqlalchemy database dsn::
+
+  $ export TEST_DSN=postgres://test:test@localhost/test
+ 
+Since the tests also need access to a second, independent database,
+you also need to define a TEST_DSN2 that points to a different
+database::
+
+  $ export TEST_DSN2=postgres://test:test@localhost/test2
+
+Two-phase commit behaviour may be tested by setting the TEST_TWOPHASE
+variable to a non empty string. e.g::
+
+  $ export TEST_TWOPHASE=True bin/test

Modified: z3c.saconfig/trunk/src/z3c/saconfig/README.txt
===================================================================
--- z3c.saconfig/trunk/src/z3c/saconfig/README.txt	2008-06-19 22:20:04 UTC (rev 87579)
+++ z3c.saconfig/trunk/src/z3c/saconfig/README.txt	2008-06-19 22:21:36 UTC (rev 87580)
@@ -242,25 +242,3 @@
   1
   >>> users[0].name
   u'bob'
-
-Running the tests
-=================
-
-This package can be checked out from
-svn://svn.zope.org/repos/main. You can then execute the buildout to
-download and install the requirements and install the test
-runner. Using your desired python run:
-
-$ python bootstrap.py
-
-This will download the dependent packages and setup the test script, which may
-be run with:
-
-$ bin/test
-
-To enable testing with your own database set the TEST_DSN environment
-variable to your sqlalchemy database dsn. Two-phase commit behaviour
-may be tested by setting the TEST_TWOPHASE variable to a non empty
-string. e.g:
-
-$ TEST_DSN=postgres://test:test@localhost/test TEST_TWOPHASE=True bin/test



More information about the Checkins mailing list