Commit Graph

66 Commits

Author SHA1 Message Date
6e9f0fd15d MDL-32569 improve SimpleTest emulation 2012-04-20 22:20:43 +02:00
54e4d1b3a1 Merge branch 'w16_MDL-32400_m23_phpunit4' of git://github.com/skodak/moodle 2012-04-16 16:12:35 +08:00
2a535174c0 MDL-32426 phpunit: Fixed up phpdocs for generator changes 2012-04-16 11:52:56 +12:00
6b04fdc0b6 MDL-32400 improve module generators
Module generators are using standard *_add_instance() methods which helps with testing, it also updates grades and calendar events if used.
2012-04-15 14:16:59 +02:00
322cf28415 MDL-32400 fix PHPUnit configuration file paths on windows 2012-04-15 12:23:42 +02:00
0684ea9972 MDL-32400 do not silence diagnostic PHPUnit includes 2012-04-15 12:23:42 +02:00
0d8e51a65f MDL-32400 rework phpunit exit codes, use only php based init 2012-04-15 12:23:42 +02:00
589376d385 MDL-32400 ignore outdated config settings in future upgrades 2012-04-15 12:23:41 +02:00
e2b8630b5c MDL-32400 store version hash also in database
This prevents problems when switching databases in config.php and keeping the same test dataroot.
2012-04-15 12:23:41 +02:00
f15d451549 MDL-32426 Add unit test generators for groups and groupings 2012-04-12 15:32:19 +01:00
5a798e7eac MDL-32323 improve SQL Server test reset performance 2012-04-11 23:21:05 +02:00
4e5ff72ea7 MDL-32323 always verify that database PHPUnit extension is available 2012-04-10 21:15:33 +02:00
c691274bf9 MDL-32323 use new loadDataSet in mod_data and fix typos in last commit 2012-04-10 21:07:56 +02:00
e396e8ed5f MDL-32323 implement data set loader support in advanced_testcase 2012-04-10 20:58:27 +02:00
d2999716aa MDL-32323 all our base test case classes should be abstract 2012-04-10 19:03:24 +02:00
39e2e9c41f MDL-32323 prevent modification of our heavily modified runBare() methods
This should help with compatibility of future PHPUnit and it also allows us to improve test reset without breaking existing moodle test cases.
2012-04-10 15:27:14 +02:00
920f4efe51 MDL-32323 improve inline docs 2012-04-10 15:27:14 +02:00
9571db04d8 MDL_32323 improve test readme 2012-04-10 15:27:14 +02:00
95dcf96559 MDL-32323 allow mocking of global $DB 2012-04-10 15:27:13 +02:00
ce9f3beb53 MDL-32323 automate transaction handling in test reset 2012-04-10 15:27:13 +02:00
3124abe213 MDL-32323 simplify phpunit integration readme 2012-04-10 15:27:13 +02:00
713d20918f MDL-32323 reset state after failed test 2012-04-10 15:27:12 +02:00
4594a381e5 MDL-32323 add list of common first and last names + long text
Random users now get proper first and last names, course and category descriptions contains longer text. The names can be also used as source of random complex utf-8 strings.
2012-04-10 15:27:11 +02:00
b5b10866e2 MDL-32323 require at least PHPUnit 3.6.0 2012-04-10 15:27:11 +02:00
c06563c845 MDL-32323 do not pollution config-dist.php with settings that only DML driver devs use 2012-04-10 15:27:10 +02:00
7620602cc2 MDL-32323 improve transaction handling in PHPUnit test cases 2012-04-10 15:27:10 +02:00
de3d1590ee MDL-32323 fix PHPUnit diag regression 2012-04-10 15:27:09 +02:00
b6b8a19316 MDL-32323 improve PHPUnit related diagnotic messages 2012-04-10 15:27:08 +02:00
e10736b3cc MDL-32323 improve mysql test reset performance 2012-04-10 15:27:08 +02:00
e370154157 MDL-32323 make test locking win compatible 2012-04-10 15:27:08 +02:00
6c583c75f9 MDL-32323 do lot try to acquire lock before dataroot init 2012-04-10 15:27:07 +02:00
2fde539255 MDL-32323 fix PHPUNIT_UTIL constant usage 2012-04-10 15:27:06 +02:00
812013b1c1 MDL-32323 reset event handlers in phpunit test reset 2012-04-10 15:27:06 +02:00
a0c5affee6 MDL-32323 test detection of changes and improve coding style 2012-04-10 15:27:05 +02:00
ab483c0a07 MDL-32323 use auto_increment instead of primary_key for sequence detection and improve coding style 2012-04-10 15:27:05 +02:00
219d1a4e72 MDL-32323 improve self-diagnostic messages 2012-04-10 15:27:05 +02:00
8b5413ccf2 MDL-32323 rework db reset once more, now with tests 2012-04-10 15:27:05 +02:00
50be93d1d7 MDL-32323 add fast transaction based database reset for PostgreSQL 2012-04-10 15:27:04 +02:00
714f3998a8 MDL-32323 rework buggy database reset optimisation and fix blog tests 2012-04-10 15:27:04 +02:00
0b9251e330 MDL-32323 cache structure of all tables and reset sequences only in table where id is primary key 2012-04-10 15:27:04 +02:00
fe35ccafe3 MDL-32323 fix recently borked detection of DB changes and improve coding style 2012-04-10 15:27:03 +02:00
61d3013c8b MDL-32323 fix concurrent run collision caused by setup reset 2012-04-10 15:27:03 +02:00
4be2ad3660 MDL-32323 prevent concurrent execution of unit tests 2012-04-10 15:27:03 +02:00
3c4c51891c MDL-32323 improve phpunit data generators 2012-04-10 15:27:02 +02:00
6e2cff2d81 MDL-32323 minor phpunit related improvements and cleanup 2012-04-10 15:27:01 +02:00
7b0ff21385 MDL-32323 experimental web UI for execution of PHPUnit tests
It is not localised intentionally because only developers should use it…
2012-04-10 15:27:01 +02:00
4b17369567 MDL-32323 all-in-one PHPUnit init script 2012-04-10 15:27:01 +02:00
6aaae357c9 MDL-32323 add schema for phpunit.xml configuration file
Credit goes to https://github.com/gooh/phpunit-schema, thanks Gordon Oheim!
2012-04-10 15:27:01 +02:00
6761e62d6d MDL-32149 link wiki docs and tracker from phpunit readme file 2012-04-03 23:08:25 +02:00
ce80640051 MDL-32149 final readme cleanup for stage 2 of PHPUnit integration 2012-04-03 22:50:45 +02:00