Skip to content

Add testing environment and Grunt testing documentation#110

Merged
Successfulsebunya merged 10 commits intoWordPress:trunkfrom
huzaifaalmesbah:add-testing-environment-and-grunt-docs
Mar 28, 2026
Merged

Add testing environment and Grunt testing documentation#110
Successfulsebunya merged 10 commits intoWordPress:trunkfrom
huzaifaalmesbah:add-testing-environment-and-grunt-docs

Conversation

@huzaifaalmesbah
Copy link
Copy Markdown
Member

Adds new handbook pages for setting up a local testing environment, using Grunt to test core tickets, and running automated tests. Updates the handbook manifest to include these new pages.

Partially #7

Adds new handbook pages for setting up a local testing environment, using Grunt to test core tickets, and running automated tests. Updates the handbook manifest to include these new pages.

Fixes WordPress#7
@SirLouen
Copy link
Copy Markdown
Member

Have you created this docs? Or have you taken them from somewhere?

@huzaifaalmesbah
Copy link
Copy Markdown
Member Author

Hi @SirLouen,

I created these docs myself. I reviewed the following resources and combined them with my own experience working with the testing workflow:

Based on these references and my practical experience, I wrote the documentation to make the setup and testing process clearer and easier to follow.

Let me know if you think anything should be adjusted or expanded.

@SirLouen
Copy link
Copy Markdown
Member

@huzaifaalmesbah maybe we shoudl create a issue and first of all try to organize this a bit.

The main problem is that we have not been working in Test historically with a "holistic" view, but targetting just in Core

We need to consider:
Should we have separate sections for each thing for each project (Core, Gutenberg, Peformance, AI, etc...?)
Or should we add all the references inside each section to all the projects?

Once we have a little structure, then we can start adding content like this.

You can open the ticket if you want, and lead the structure.

Copy link
Copy Markdown
Collaborator

@ozgursar ozgursar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I haven't done any automated tests before and as these are run by Github Actions, I'm not sure if anyone will be running them manually as part of the patch testing they do.

Copy link
Copy Markdown
Collaborator

@Successfulsebunya Successfulsebunya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apply the changes and then we can get this merged

Added a video walkthrough link for setup instructions.
Added a video walkthrough link for setup instructions and included a resources section.
Added a resources section with a YouTube channel link.
Copy link
Copy Markdown
Collaborator

@ozgursar ozgursar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added video walkthrough links and resources section below the pages.

@nikunj8866
Copy link
Copy Markdown
Collaborator

@huzaifaalmesbah Thanks for your hard work! As a general best practice, please keep each handbook page change in its own separate issue and PR. It makes review easier and faster to merge.

Copy link
Copy Markdown
Collaborator

@ozgursar ozgursar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just thought explaining why using the trunk is essential when testing tickets.

Add brief explanation that patches are created against the trunk
development branch, not the stable release, with a link to the
wordpress-develop repository.
- Add upstream remote setup instruction for keeping repo in sync
- Add Docker Desktop running note before starting environment
- Add fallback for missing upstream remote in Grunt troubleshooting
- Expand troubleshooting section in automated tests guide
Copy link
Copy Markdown
Collaborator

@ozgursar ozgursar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@huzaifaalmesbah huzaifaalmesbah requested a review from 3kori March 26, 2026 17:37
npm run env:start
```

5. **Install WordPress**
Copy link
Copy Markdown
Collaborator

@3kori 3kori Mar 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add a colon(:) between this phrase and the next? So that the first part acts like an introductory phrase, and the other part expands on it. Or another way would be to use a backslash() to make it look like a heading and a sentence explaining things.

Do the same for the other points from 1 – 5.

Currently, it reads like two different parts jammed together.
Install Dependencies Run the following command to install the necessary JavaScript and PHP tools:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree to this. Alternatively push the paragraph to the next line and make the titles a heading

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or another way would be to use a backslash() to make it look like a heading and a sentence explaining things.

I also find it more readable with the backslash option.

@huzaifaalmesbah
Copy link
Copy Markdown
Member Author

@3kori Thanks for the feedback! I've updated the formatting using colons for steps 1-5 in the Setup Instructions section.

@huzaifaalmesbah huzaifaalmesbah requested a review from 3kori March 27, 2026 04:14
@huzaifaalmesbah
Copy link
Copy Markdown
Member Author

I see this PR is almost ready to merge, but I have a concern about what happens after merging.

The current page https://make.wordpress.org/test/handbook/get-setup-for-testing/
already has some environment setup content, and this PR introduces a more complete guide. After merging, this page may become redundant or need to be reworked to avoid duplication.

Also, we’ve already opened an issue for multi-domain testing and restructuring here: #111

If we merge this PR now, we may need to restructure again when working on issue #111. At that point, we might need to introduce redirects like:

  • /get-setup-for-testing/test-core-tickets-with-grunt//get-setup-for-testing/core/test-core-tickets-with-grunt/
  • /get-setup-for-testing/run-automated-tests//get-setup-for-testing/core/run-automated-tests/
  • /get-setup-for-testing/test-core-tickets-with-grunt//get-setup-for-testing/core/test-core-tickets-with-grunt/

However, if we proceed with the new structure now, we would only need a single redirect:

  • /get-setup-for-testing/test-core-tickets-with-playground//get-setup-for-testing/core/test-core-tickets-with-playground/

We could also use/get-setup-for-testing/ as a proper main landing page.

From there, we can focus on completing the WordPress core domain first, and then gradually add other domains later.

If everyone agrees, I can either update this PR accordingly or create a separate new PR with the already reviewed content but using the new structure.

What do you think? @ozgursar @Successfulsebunya @nikunj8866 @3kori

Copy link
Copy Markdown
Collaborator

@Successfulsebunya Successfulsebunya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just the final edits from @3kori

npm run env:start
```

5. **Install WordPress**
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree to this. Alternatively push the paragraph to the next line and make the titles a heading

@Successfulsebunya
Copy link
Copy Markdown
Collaborator

Successfulsebunya commented Mar 28, 2026

If we merge this PR now, we may need to restructure again when working on issue #111. At that point, we might need to introduce redirects like:

I suggest we use /get-setup-for-testing/ as a proper main landing page.

Copy link
Copy Markdown
Collaborator

@Successfulsebunya Successfulsebunya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Successfulsebunya Successfulsebunya merged commit 55fb7e5 into WordPress:trunk Mar 28, 2026
@ozgursar
Copy link
Copy Markdown
Collaborator

The current page https://make.wordpress.org/test/handbook/get-setup-for-testing/ already has some environment setup content, and this PR introduces a more complete guide. After merging, this page may become redundant or need to be reworked to avoid duplication.

I agree that there should be single source of truth for the environment setup.
We should keep the Get Setup for Testing page but change its content to a summary of the subitems without any particular technical instructions.

Also, I don't think "Set Up a Hosted WordPress Site" is relevant. We may consider removing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants