[wp-trac] [WordPress Trac] #44390: PHPUnit tutorial page lacking build vital step
WordPress Trac
noreply at wordpress.org
Wed Jun 20 19:54:33 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: Build/Test Tools | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses: docs
------------------------------+------------------------------
Changes (by SergeyBiryukov):
* version: => trunk
* component: General => Build/Test Tools
Old description:
> 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!
New description:
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!
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44390#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list