As promised, I’ve started a codex page that explains how to take advantage of BuddyPress’s new automated testing suite when writing unit tests for your own BP plugins. http://codex.buddypress.org/developer/automated-testing/writing-automated-tests-for-buddypress-dependent-plugins/ has lots of details and a working example, but the summary is: require
buddypress/tests/includes/loader.php before your own plugin to make sure that BP gets installed and initialized, and require
buddypress/tests/includes/testcase.php for access to BP’s testcase class and factories.
Questions or comments? Please leave them below.