Make WordPress Core

Opened 5 weeks ago

Last modified 5 weeks ago

#44390 new defect (bug)

PHPUnit tutorial page lacking build vital step

Reported by: Ste_95 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: trunk
Component: Build/Test Tools Keywords:
Focuses: docs Cc:

Description (last modified by SergeyBiryukov)

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 #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!

Change History (1)

#1 @SergeyBiryukov
5 weeks ago

  • Component changed from General to Build/Test Tools
  • Description modified (diff)
  • Version set to trunk
Note: See TracTickets for help on using tickets.