X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2FREADME;h=51876c19c1932074c0fda8a0f1c783bd786217b4;hb=f68111d8749473df1879d4431aa7c74ee2eea87d;hp=c20387ab300b9b9c316d6c423093c4e23e3e8fd9;hpb=7f0e4a65d1b425f2fa58fc7cce8296c1a6c52c2f;p=clsql.git diff --git a/tests/README b/tests/README index c20387a..51876c1 100644 --- a/tests/README +++ b/tests/README @@ -1,3 +1,29 @@ +* RUNNING THE REGRESSION SUITE + +Just load clsql.asd or put it somewhere where ASDF can find it +and call: + +(asdf:oos 'asdf:load-op 'clsql) + +You'll then need to load a CLSQL backend before you can do anything. + +To run the regression tests load clsql-tests.asd or put it +somewhere where ASDF can find it, edit the file tests/test-init.lisp +and set the following variables to appropriate values: + + *test-database-server* + *test-database-name* + *test-database-user* + *test-database-password* + +And then call: + +(asdf:oos 'asdf:load-op 'clsql-tests) +(clsql-tests:run-tests BACKEND) + +where BACKEND is the CLSQL database interface to use (currently one of +:postgresql, :postgresql-socket, :sqlite or :mysql). + * REGRESSION TEST SUITE GOALS The intent of this test suite is to provide sufficient coverage for @@ -8,7 +34,7 @@ the system to support the following: Refactoring and redesign efforts are normally restricted to a single subsystem, or perhaps to interdependent subsystems. In such cases, a set of regression tests which excercise the existing interface of the -rest of USQL to the changing subsystems should be in place and passing +rest of CLSQL to the changing subsystems should be in place and passing before the coding starts. ** Ensuring portability and Supporting new ports. @@ -22,9 +48,9 @@ informal coordination between the mintainers of the various ports. ** Adding new RDBMS backends -The entire USQL DBMS interface needs to be excercised by the test +The entire CLSQL DBMS interface needs to be excercised by the test suite, such that a new RDBMS backend that passes all the tests can be -reasonably assured of working with the USQL layers above that. These +reasonably assured of working with the CLSQL layers above that. These tests should also serve as impromptu documentation for the details of that interface and what it expects frothe RDBMS driver layers. @@ -42,7 +68,7 @@ spend finding the bug prior to fixing it. ** Multiple RDBMS Issues -USQL supports several RDBMS backends, and it should be possible to run +CLSQL supports several RDBMS backends, and it should be possible to run every test against all of them. However, there are some features which we want tests for but which are not implemented on several of the backends. @@ -107,4 +133,4 @@ will be run. *** Object Create/Modification/Deletion in a context -- partly covered already *** Interaction of multiple contexts *** Schema manipulation within a context - *** Rollback and error handling within a context \ No newline at end of file + *** Rollback and error handling within a context