Opened 11 months ago
Last modified 10 months ago
#42 new task
Port over nikolayb's framework
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | Implement New Test Runner |
| Component: | Test Framework | Keywords: | |
| Cc: |
Description
Bring over the code from GitHub?: https://github.com/nb/wordpress-tests
This includes the basic phpunit.xml config, the bootstrapper, and base test class.
Change History (8)
In #100, I suggest we should always install. Too many variables to account for.
Other things that may need to be ported from the old framework:
- Mock PHPMailer (see #47)
- wp_die() handler overrides
- Plugin support (see #39)
- Confirm error handling is proper, including the stuff from WPTestCase: http://unit-tests.trac.wordpress.org/browser/branches/legacy/wp-testlib/base.php?rev=752#L27.
(In [915]) Make some sense of the original formatting tests from [121].
- Dissolve the old directories, moving data into /data/formatting/ and tests into /tests/formatting/.
- Remove the old formatting testcase, instead using straight file() calls functioning as PHPUnit data providers.
- Bring back the tests for the "funky javascript fix" in the form of testing _convert_urlencoded_to_entities(), removed in [403].
(In [924]) By default, do not execute the ajax tests. They are slow due to the requirement that they run in a separate process for DOING_AJAX reasons.
As they will be run separately, stop running ajax tests in a separate process. The exception is autosave, which has DOING_AUTOSAVE.
When the full test suite is run as plain phpunit, add a message to remind the developer that ajax was not run.

(In [760]) Initial port of nikolayb's phpunit-based framework.
See #42.