[buddypress-trac] [BuddyPress Trac] #8317: Use @wordpress/env to ease BuddyPress contributors life

buddypress-trac noreply at wordpress.org
Sat Aug 15 10:39:46 UTC 2020


#8317: Use @wordpress/env to ease BuddyPress contributors life
------------------------------------------------+---------------------
 Reporter:  imath                               |       Owner:  netweb
     Type:  enhancement                         |      Status:  new
 Priority:  high                                |   Milestone:  7.0.0
Component:  Build/Test Tools                    |     Version:
 Severity:  normal                              |  Resolution:
 Keywords:  has-patch dev-feedback needs-codex  |
------------------------------------------------+---------------------

Comment (by imath):

 I thought being able to run PHPUnit tests was missing, so I've added to
 the
 [https://buddypress.trac.wordpress.org/attachment/ticket/8317/8317.3.patch
 8317.3.patch]!

 Once the patch is applied (and you installed Docker...), here's how to
 test it:
 1. run `npm install`
 2. run `composer update wp-phpunit/wp-phpunit`
 3. Launch Docker
 4. run `npm run wp-env start` to build the environment (WordPress Trunk,
 BuddyPress Trunk, BP REST master)
 5. if you want to play with the website, you can go to
 `http://localhost:8888`
 6. Otherwise (or if you finished playing) run `npm run wp-env stop`
 7. To test BuddyPress on non-multisite, run `npm run test-php`
 8. To test BuddyPress on multisite, run `npm run test-php-multisite`

 I love it! Let's have it in to ease contributions!

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8317#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list