[wp-trac] [WordPress Trac] #44390: PHPUnit tutorial page lacking build vital step

WordPress Trac noreply at wordpress.org
Mon Jun 18 06:11:59 UTC 2018


#44390: PHPUnit tutorial page lacking build vital step
--------------------------+-----------------------------
 Reporter:  Ste_95        |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 I think this page should be updated a little
 https://make.wordpress.org/core/handbook/testing/automated-
 testing/phpunit/

 If you just follow those instructions, running `phpunit` on the Core fails
 because there is no `build` directory in the downloaded repositories. It
 took me quite some googling before figuring out that I also had to run
 `npm install && grunt build` (and installing the related packages) before
 running `phpunit`. I learnt that from
 [https://core.trac.wordpress.org/ticket/43055], but it was really tough to
 find!


 I think we should mention that, before running phpunit, one needs to run
 `npm install && grunt build`. I tried to at least post a comment on the
 article myself, but it looks like that's not allowed.

 Let me know if I can be of any further help!

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44390>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list