summaryrefslogtreecommitdiff
path: root/_test/lib
Commit message (Collapse)AuthorAge
* reset failinfo on next test caseAndreas Gohr2010-10-03
|
* fixed new calls in test cases according to PHP5 conventionsGuy Brand2010-09-23
|
* added support for plugin unittestsMichael Klier2010-03-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support to include plugin tests in the DokuWiki testsuite. Plugin tests are located in a dedicated directory _test/within a plugin directory. The naming convention of the test files follows the one used in DokuWikis testsuite. <plugin>/_test/*.test.php -> single test <plugin>/_test/*.group.php -> group test The plugin tests are accessible via the web interface of the test suite and via the cli interface. It is recommend to bundle plugin test in a plugin group test. The webinterface also allows to run all plugin tests at once. Test files must include: <dokuwiki>/_test/lib/unittest.php Example Test: require_once(DOKU_INC.'_test/lib/unittest.php'); class plugin_test extends Doku_UnitTestCase { function test() { $this->assertEqual(1,1); } } Example Group Test: require_once(DOKU_INC.'_test/lib/unittest.php'); class plugin_group_test extends Doku_GroupTest { function group_test() { $dir = dirname(__FILE__).'/'; $this->GroupTest('plugin_grouptest'); $this->addTestFile($dir . 'plugin.test1.php'); $this->addTestFile($dir . 'plugin.test2.php'); $this->addTestFile($dir . 'plugin.test3.php'); } } At the moment unittest.php contains only two meta classes so plugins tests don't have to inherit from the simpletest classes. This patch should be treated as intermediate step to allow for plugin tests. The testsuite wasn't designed to include plugin tests. It should probably be refactored at a later point.
* Make tests PHP 5.3 compatibleAdrian Lang2010-03-23
|
* Call-time pass-by-reference problem in test suite fixedAndreas Gohr2008-05-04
| | | | darcs-hash:20080504183111-7ad00-f2d6514f010dc907dbe0488c06d11b775cc04dac.gz
* added JsStrip unit test filesAndreas Gohr2007-03-05
| | | | | | | | | | | | | This patch adds unit test files from the new release of JsStrip [1]. Some of the tests currently fail pointing to bugs which are fixed in the new JsStrip release. The fixes need to be ported to DokuWiki's js_compress function. This patch also adds a way to output additional info when a test fails. It misuses SimpleTest's signalling which is probably a bad idea but works for now. http://code.google.com/p/jsstrip/ darcs-hash:20070305223025-7ad00-583a70a1ddc374eb61193f9315af99baeedea0be.gz
* unittest fixeschris2006-08-04
| | | | darcs-hash:20060804142243-9b6ab-d208f7f1a67a9958fda05c519c8407ad5e733cea.gz
* fix for E_NOTICE in _test/lib/testmanager.phpchris2006-08-04
| | | | | | (possibly due to more stringent checking in PHP5 ???) darcs-hash:20060804000126-9b6ab-9ba08939e0d43648e3700df8837a5a35ded15924.gz
* mock_functions_patchhfuecks2005-11-06
| | | | darcs-hash:20051106221447-e96b6-ff3d9d209aa899273b7116a72fbd3d49d4cc0500.gz
* a small CSS hack to make the buttons work in IE5.2 MacAndreas Gohr2005-11-03
| | | | darcs-hash:20051103114701-6e07b-cb87eca037066a21f59da7f14e65986873607e29.gz
* some fixes in the testmanagementAndreas Gohr2005-11-02
| | | | darcs-hash:20051102222604-7ad00-f8f3ae8435f8d6f6d738daaec205c541a371e9c7.gz
* renamed test directoryAndreas Gohr2005-10-15
darcs-hash:20051015114545-7ad00-561552ce7e519d81146b5cb2d28203aee7c6d2ad.gz