Skip to:
Content

bbPress.org


Ignore:
Timestamp:
04/07/2015 11:51:05 AM (11 years ago)
Author:
netweb
Message:

Exclude BuddyPress tests when running phpunit

BuddyPress unit testing will conflict with stand alone bbPress user testing, when BuddyPress is active the core members component cannot be deactivated thus testing users with BuddyPress at /member/username vs bbPress only /user/username and custom rewrites /custom-user-slug/username will cause conflicts in user PHPUnit tests.

A new Grunt sub task grunt phpunit:buddypress has been added to test BuddyPress integration with bbPress without compromising bbPress standalone PHPUnit testing.

Props netweb. See #2782

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpunit.xml.dist

    r5610 r5672  
    88    >
    99    <testsuites>
    10         <testsuite>
    11             <directory suffix=".php">tests/phpunit/testcases/</directory>
    12         </testsuite>
    13     </testsuites>
     10        <testsuite>
     11            <directory suffix=".php">tests/phpunit/testcases/</directory>
     12        </testsuite>
     13    </testsuites>
     14    <groups>
     15        <exclude>
     16            <group>buddypress</group>
     17        </exclude>
     18    </groups>
    1419</phpunit>
Note: See TracChangeset for help on using the changeset viewer.