Per wikitech-l discussion: Move tests from maintenance/tests/ to tests/. They're...
[lhc/web/wiklou.git] / tests / phpunit / TODO
1 == Things To Do ==
2
3 * DEFAULT TESTS NEED TO MADE NON-DESTRUCTIVE. Any destructive tests which alter the contents of the live wiki need to
4 be protected with an explicit confirmation so people exploring their system don't accidentally destroy their main page
5 or register user accounts with default passwords.
6
7 * Most of the tests are named poorly; naming should describe a use case in story-like language, not simply identify the
8 unit under test. An example would be the difference between testCalculate and testAddingIntegersTogetherWorks.
9 * Many of the tests make multiple assertions, and are thus not unitary tests. By using data-providers and more use-case
10 oriented test selection nearly all of these cases can be easily resolved.
11 * Some of the test files are either incorrectly named or in the wrong folder. Tests should be organized in a mirrored
12 structure to the source they are testing, and named the same, with the exception of the word "Test" at the end.
13 * Shared set-up code or base classes are present, but usually named improperly or appear to be poorly factored. Support
14 code should share as much of the same naming as the code it's supporting, and test and test-case depenencies should be
15 considered to resolve other shared needs.