Issue Details (XML | Word | Printable)

Key: MDL-14905
Type: Sub-task Sub-task
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Nicolas Connault
Reporter: Eloy Lafuente (stronk7)
Votes: 0
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle
MDL-14679

M2: DDL and DML functional tests

Created: 19/May/08 11:12 PM   Updated: 02/Jul/08 11:10 PM
Return to search
Component/s: Database SQL/XMLDB
Affects Version/s: 2.0
Fix Version/s: 2.0

Participants: Eloy Lafuente (stronk7) and Nicolas Connault
Security Level: None
Resolved date: 02/Jul/08
Affected Branches: MOODLE_20_STABLE
Fixed Branches: MOODLE_20_STABLE


 Description  « Hide
From some chats:

http://docs.google.com/View?docid=dgzf39jp_7tmcr5jc5 :

    * table prefix is separated so it's easy to create moodle_database instances with different prefixes.
    * able to test execute test agains multiple DBs by:
       1. Having some interface in admin to define them
       2. Make tests happen against all them
       3. If no alternate DBs are defined, tets default to current one (config.php one)
    * will go to dml/simpletest and ddl/simpletest

HQ chat:

    * able to be executed with one CLI script.
    * able to generate one cool page with all test results.
    * able to report by email about problems.

Ciao :-)

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Nicolas Connault committed 1 file to 'Moodle CVS' - 19/May/08 11:36 PM
MDL-14905 First battery of ddl tests ready. All pass but one, the rename_index test.
ADD lib/ddl/simpletest/Attic/testddllib.php   Rev. 1.1    (+0 -0 lines)
Nicolas Connault committed 2 files to 'Moodle CVS' - 20/May/08 09:49 PM
MDL-14905 More tests of database_manager class. Need to replace debugging() with proper exception handling that can be caught and asserted by simpletest.
MODIFY lib/ddl/database_manager.php   Rev. 1.2    (+8 -3 lines)
MODIFY lib/ddl/simpletest/Attic/testddllib.php   Rev. 1.2    (+143 -20 lines)
Nicolas Connault committed 4 files to 'Moodle CVS' - 21/May/08 02:34 PM
MDL-14905 Completed all core functional tests for database_manager (ddl). Found some API design issues and commented on them using @TODO comments.
MODIFY lib/ddl/simpletest/Attic/testddllib.php   Rev. 1.4    (+60 -1 lines)
ADD lib/ddl/simpletest/fixtures/xmldb_table.xml   Rev. 1.1    (+0 -0 lines)
MODIFY lib/ddl/database_manager.php   Rev. 1.5    (+14 -2 lines)
ADD lib/ddl/simpletest/fixtures/invalid.xml   Rev. 1.1    (+0 -0 lines)
Nicolas Connault committed 6 files to 'Moodle CVS' - 21/May/08 10:59 PM
MDL-14905 Started on the DDL functional tests. Added an ugly but temporary hack into error() and print_error(), so that they throw an exception instead of dying when UNITTEST is defined.
MODIFY lib/weblib.php   Rev. 1.1075    (+24 -14 lines)
MODIFY lib/dml/moodle_database.php   Rev. 1.3    (+14 -13 lines)
MODIFY lib/ddl/simpletest/Attic/testddllib.php   Rev. 1.5    (+3 -4 lines)
MODIFY lib/dmllib.php   Rev. 1.149    (+2 -2 lines)
ADD lib/dml/simpletest/Attic/testdmllib.php   Rev. 1.1    (+0 -0 lines)
MODIFY lib/deprecatedlib.php   Rev. 1.72    (+14 -5 lines)
Nicolas Connault committed 5 files to 'Moodle CVS' - 23/May/08 10:37 PM
MDL-14905 More DML and DDL tests. Also started on the unit test report interface.
DEL lib/grade/Attic/lib_wrapper.php   Rev. 1.4    (+0 -0 lines)
MODIFY lib/ddl/simpletest/Attic/testddllib.php   Rev. 1.6    (+76 -84 lines)
MODIFY lib/dml/simpletest/Attic/testdmllib.php   Rev. 1.2    (+22 -25 lines)
MODIFY admin/report/simpletest/Attic/index.php   Rev. 1.13    (+14 -0 lines)
DEL lib/simpletest/Attic/testdmllib.php   Rev. 1.8    (+0 -0 lines)
Petr Skoda committed 7 files to 'Moodle CVS' - 11/Jun/08 03:54 AM
Petr Skoda committed 1 file to 'Moodle CVS' - 11/Jun/08 04:03 AM
MDL-14905 towards functional DB tests
MODIFY admin/report/simpletest/Attic/settings.php   Rev. 1.2    (+2 -2 lines)
Petr Skoda committed 6 files to 'Moodle CVS' - 11/Jun/08 06:05 AM
Petr Skoda committed 1 file to 'Moodle CVS' - 12/Jun/08 06:51 AM
MDL-14905 towards functional DB tests
MODIFY admin/report/simpletest/Attic/index.php   Rev. 1.16    (+0 -3 lines)
Petr Skoda committed 6 files to 'Moodle CVS' - 12/Jun/08 05:38 PM
Petr Skoda committed 5 files to 'Moodle CVS' - 12/Jun/08 11:18 PM
Petr Skoda committed 1 file to 'Moodle CVS' - 13/Jun/08 02:28 AM
MDL-14905 towards functional DB tests
MODIFY lib/ddl/simpletest/Attic/testddllib.php   Rev. 1.11    (+148 -43 lines)
Petr Skoda committed 7 files to 'Moodle CVS' - 13/Jun/08 04:35 PM
Petr Skoda committed 4 files to 'Moodle CVS' - 13/Jun/08 04:41 PM
Petr Skoda committed 1 file to 'Moodle CVS' - 13/Jun/08 04:48 PM
MDL-14905 towards functional DB tests
MODIFY admin/report/simpletest/Attic/dbtest.php   Rev. 1.7    (+3 -2 lines)
Petr Skoda committed 1 file to 'Moodle CVS' - 15/Jun/08 07:53 PM
MDL-14905 towards functional DB tests
MODIFY lib/dml/simpletest/testdml.php   Rev. 1.2    (+9 -22 lines)
Nicolas Connault committed 1 file to 'Moodle CVS' - 16/Jun/08 11:41 PM
MDL-14905 Added subclass of moodle_database for testing, plus some unit tests.
MODIFY lib/dml/simpletest/testdml.php   Rev. 1.3    (+172 -5 lines)
Nicolas Connault committed 1 file to 'Moodle CVS' - 18/Jun/08 07:12 PM
MDL-14905 Removed table creation and data insertion from setUp() method, and put simple versions of these in each test method needing them.
MODIFY lib/dml/simpletest/testdml.php   Rev. 1.4    (+119 -79 lines)
Nicolas Connault committed 2 files to 'Moodle CVS' - 18/Jun/08 10:53 PM
MDL-14905 Added more unit tests, plus stubs for all methods to be tested. Also fixed a bug in moodle_database:get_recordset_list(), which was using " AND " between values instead of " OR "
MODIFY lib/dml/moodle_database.php   Rev. 1.32    (+3 -4 lines)
MODIFY lib/dml/simpletest/testdml.php   Rev. 1.5    (+263 -24 lines)
Nicolas Connault committed 2 files to 'Moodle CVS' - 20/Jun/08 05:40 PM
MDL-14905 Finished all basic tests. It should now be easy to extend these tests with more boundary conditions
MODIFY lib/dml/simpletest/testdml.php   Rev. 1.6    (+438 -4 lines)
MODIFY lib/dml/moodle_database.php   Rev. 1.33    (+2 -2 lines)