Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#44390 closed enhancement (invalid)

PHPUnit tutorial page lacking build vital step

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

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
8 years ago

  • Component GeneralBuild/Test Tools
  • Description modified (diff)
  • Versiontrunk

#2 @Ste_95
8 years ago

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

#3 @mukesh27
8 years ago

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

#4 @pento
8 years ago

  • Version trunk

#5 @desrosj
8 years ago

  • Keywords needs-codex removed
  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

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.