[buddypress-trac] [BuddyPress] #3567: Unit Testing for BuddyPress!

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Sep 9 15:31:57 UTC 2011

#3567: Unit Testing for BuddyPress!
 Reporter:  foxly        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Core         |     Version:  1.5
 Severity:  major        |  Resolution:
 Keywords:  has-patch    |

Comment (by boonebgorges):

 I've only just glanced at it, but it looks really sweet. Using PHPUnit
 Portable is a very thoughtful enhancement to the WP automated tests, and
 will lower the bar for developers to start writing tests for their code (I
 recently wrote about what a pain it can be to get PHPUnit running
 standalone in some environments http://teleogistic.net/2011/08/setting-up-

 I guess I would personally prefer to have the unit tests broken out (so
 that you don't have to download the entire BP package along with it) so
 that I could use them with my own Git/svn checkouts of BP. It's easy
 enough to copy the unit-tests folder into my dev environment, but that
 would be kind of a pain if I wanted to dev against BP and the tests at the
 same time. Ultimately, it would be nice to move to a system where the BP
 dev package would include the app itself in a subdirectory, with the unit
 tests in another subdirectory, so that they're automatically available to
 all developers. This is how it works with lots of software packages.
 Anyway, that's for some point in the future, when and if the tests have
 decent enough coverage to warrant it.

 Now to start writing tests - I see that there are only three so far :) We
 should have a discussion about getting the tests into shared space where
 the core devs can contribute to test coverage alongside your team, and
 anyone else who wants to submit patches. What are your thoughts about
 this, foxly?

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3567#comment:4>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list