WordPress.org

Make WordPress Core

#44390 closed enhancement (invalid)

PHPUnit tutorial page lacking build vital step

Reported by: Ste_95 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords:
Focuses: docs Cc:
PR Number:

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 (5)

#1 @SergeyBiryukov
19 months ago

  • Component changed from General to Build/Test Tools
  • Description modified (diff)
  • Version set to trunk

#2 @Ste_95
17 months ago

This seems to have been fixed, and some more documentation has been added to the mentioned page, great!

#3 @mukesh27
17 months ago

  • Keywords needs-codex added
  • Type changed from defect (bug) to enhancement

#4 @pento
12 months ago

  • Version trunk deleted

#5 @desrosj
12 months ago

  • Keywords needs-codex removed
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Thanks for this ticket, @Ste_95. I am going to close this ticket out as the missing steps you mentioned have since been added to the page. New tickets can be opened for any other updates that need to be made, but those should be opened on the Meta Trac instance using the Handbook component.

Note: See TracTickets for help on using tickets.