Its not the tests that will need fixing in most cases, but WordPress.

Altho, In some cases, Its just that the test cases are out of date.

If you'd like to just run one set of tests (to see what is failing) you can run them like so:
php ./wp-test.php -t Test_Sanitize_File_Name

Peter Westwood (westi) is the main man behind the tests, he'll probably chime in here sometime with some better answers.

On Sun, 21 Feb 2010 20:33:25 +1100, Ezwan Aizat Bin Abdullah Faiz <[email protected]> wrote:

Ah alrights.

Are there plans to fix these tests so that they all pass? If so I hope to
assist if possible.

Just for archivals sake my test results are so:

FAILURES!
Tests: 489, Assertions: 2919, Failures: 136, Errors: 32, Skipped: 18.

Time:
real 2m31.785s
user 0m37.800s
sys 0m4.463s

Aizat

On Sun, Feb 21, 2010 at 2:51 PM, Dion Hulse (dd32) <[email protected]>wrote:

The test suite should be for Trunk, Older branches may run, but some tests
will fail.

Not all tests will pass IIRC, Some are edge cases which are known but not
handled.

For reference, Here's my output:


←[37;41m←[2KFAILURES!
←[0m←[37;41m←[2KTests: 489, Assertions: 2382, Failures: 138, Errors: 40,
Skipped: 17.
←[0m←[2K

So if you're getting something similar, then everything should be "right"



On Sun, 21 Feb 2010 15:57:28 +1100, Ezwan Aizat Bin Abdullah Faiz <
[email protected]> wrote:

 Holas,

I've been interested in building plugins for WordPress and and
contributing
back to the core development. But I've come onto a bit of a stumble.

I've learned that WordPress has Automated Testing (
http://codex.wordpress.org/Automated_Testing ) , and experimented trying
to
use it. I've got them working through installing PHPUnit via PEAR. But the tests generally failed (When running the test suite, I get a lot of Fs).

My questions:

- What sort of environment is required? This includes OS, software and
  packages installed.
- What version of WordPress is the Automated Testing (currently Revision
  289) designed for? It is not specified in the README.txt . I've tried
v2.9.2
  and the trunk of WordPress. No luck.

My environment:

  - Apple Mac OS X 10.6 Snow Leopard
  - PHP 5.2.12 (installed via MacPorts php52
  @5.2.12_0+apache2+darwin_10+macosx+mysql5+pear+readline  )

Much help is appreciated.

Regards,
Aizat



--
Dion Hulse / dd32

Contact:
 e: [email protected]
 msn: [email protected]
 skype: theonly_dd32
 Web: http://dd32.id.au/
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers






--
Dion Hulse / dd32

Contact:
  e: [email protected]
  msn: [email protected]
  skype: theonly_dd32
  Web: http://dd32.id.au/
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to