r91568 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91567‎ | r91568 | r91569 >
Date:17:52, 6 July 2011
Author:demon
Status:ok (Comments)
Tags:
Comment:
Remove notes about being destructive. We work properly on cloned tables now
Modified paths:
  • /trunk/phase3/tests/phpunit/TODO (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/ArticleTablesTest.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/api/ApiBlockTest.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/api/ApiTest.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/api/ApiUploadTest.php (modified) (history)
  • /trunk/phase3/tests/phpunit/includes/api/ApiWatchTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/TODO
@@ -1,9 +1,4 @@
22 == Things To Do ==
3 -
4 -* DEFAULT TESTS NEED TO MADE NON-DESTRUCTIVE. Any destructive tests which alter the contents of the live wiki need to
5 -be protected with an explicit confirmation so people exploring their system don't accidentally destroy their main page
6 -or register user accounts with default passwords.
7 -
83 * Most of the tests are named poorly; naming should describe a use case in story-like language, not simply identify the
94 unit under test. An example would be the difference between testCalculate and testAddingIntegersTogetherWorks.
105 * Many of the tests make multiple assertions, and are thus not unitary tests. By using data-providers and more use-case
Index: trunk/phase3/tests/phpunit/includes/ArticleTablesTest.php
@@ -2,7 +2,6 @@
33
44 /**
55 * @group Database
6 - * @group Destructive
76 */
87 class ArticleTablesTest extends MediaWikiLangTestCase {
98
Index: trunk/phase3/tests/phpunit/includes/api/ApiTest.php
@@ -2,7 +2,6 @@
33
44 /**
55 * @group Database
6 - * @group Destructive
76 */
87 class ApiTest extends ApiTestCase {
98
Index: trunk/phase3/tests/phpunit/includes/api/ApiUploadTest.php
@@ -2,7 +2,6 @@
33
44 /**
55 * @group Database
6 - * @group Destructive
76 */
87
98 /**
@@ -20,7 +19,6 @@
2120
2221 /**
2322 * @group Database
24 - * @group Destructive
2523 *
2624 * This is pretty sucky... needs to be prettified.
2725 */
Index: trunk/phase3/tests/phpunit/includes/api/ApiWatchTest.php
@@ -2,7 +2,6 @@
33
44 /**
55 * @group Database
6 - * @group Destructive
76 * @todo This test suite is severly broken and need a full review
87 */
98 class ApiWatchTest extends ApiTestCase {
Index: trunk/phase3/tests/phpunit/includes/api/ApiBlockTest.php
@@ -2,7 +2,6 @@
33
44 /**
55 * @group Database
6 - * @group Destructive
76 */
87 class ApiBlockTest extends ApiTestCase {
98

Sign-offs

UserFlagDate
Hasharinspected11:26, 22 July 2011

Comments

#Comment by Hashar (talk | contribs)   11:24, 22 July 2011

You might want to update tests/phpunit/Makefile as well :-)

Status & tagging log