Skip to content

Update reproduction and patch testing report templates#166

Merged
nikunj8866 merged 2 commits into
WordPress:trunkfrom
huzaifaalmesbah:update/104-test-report-templates
May 21, 2026
Merged

Update reproduction and patch testing report templates#166
nikunj8866 merged 2 commits into
WordPress:trunkfrom
huzaifaalmesbah:update/104-test-report-templates

Conversation

@huzaifaalmesbah

@huzaifaalmesbah huzaifaalmesbah commented May 16, 2026

Copy link
Copy Markdown
Member

Summary

Proposed changes to the Reproduction and Patch Testing report templates as discussed in #104.

Changes to both templates

  • Environment: Reordered fields (WordPress first), added Database and MU Plugins
  • Steps taken: Replaces "Actual Results" — result shown as the last numbered step (🐞//)
  • Expected behavior/result: New section for describing expected outcomes
  • Screenshots/Screencast with results: Dedicated section (with before/after for patch testing)
  • Support Content: New section for Blueprint JSON, Playground URLs, code snippets, etc.
  • Trac template / GitHub template: Consistent subheadings for both versions, replaced <pre><code> with fenced code blocks for the Trac template

Patch testing specific

  • Merged the two separate Bug/Defect and Feature/Enhancement templates into a single unified Patch Testing Report Template

Closes #104

Test plan

  • Verify both Trac and GitHub templates render correctly in the handbook
  • Confirm all new fields (Database, MU Plugins, Support Content) are present in both templates
  • Check that the unified patch testing template covers both bug/defect and feature/enhancement use cases

🤖 Generated with Claude Code

Restructure both templates with new fields (Database, MU Plugins, Support Content), replace Actual Results with Steps taken, and unify patch testing into a single template.
@github-actions

github-actions Bot commented May 16, 2026

Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: huzaifaalmesbah <huzaifaalmesbah@git.wordpress.org>
Co-authored-by: ozgursar <ozgursar@git.wordpress.org>
Co-authored-by: nikunj8866 <nikunj8866@git.wordpress.org>
Co-authored-by: 3kori <r1k0@git.wordpress.org>
Co-authored-by: Successfulsebunya <mosescursor@git.wordpress.org>
Co-authored-by: SirLouen <sirlouen@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@nikunj8866 nikunj8866 left a comment

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.

@huzaifaalmesbah Great work on this handbook page! I'd like to suggest adding a dedicated section that points contributors to the Test Reports plugin, so they don't have to fill out the environment details manually.

This would sit right before the Report Template section, so readers see the automated option first.


Proposed section

## Generating Reports with the Test Reports Plugin

Instead of filling out the template manually, you can use the **Test Reports** plugin to auto-generate reproduction reports pre-filled with your environment details.

### What it does

The plugin automatically captures your WordPress version, PHP version, active theme, plugins, browser, and OS - eliminating manual data entry for the Environment section.

### Where to get it

Install **Test Reports** directly from:  (https://github.com/WPContrib/test-reports/archive/refs/tags/0.1.0.zip)

### How to use it

1. Install and activate the plugin on your test site.
2. Navigate to the Tools > Test Reports.
3. Select the Report Location (Trac or GitHub) - the plugin will format the output accordingly.
5. Fill in only the fields that require manual input: **Steps taken**, **Expected behavior**, and **Additional Notes**.

### Tips

- For **GitHub issues**, the plugin outputs Markdown-formatted reports ready to paste directly.
- For **Trac tickets**, the plugin outputs Wiki-formatted reports compatible with Trac's syntax.
- Always review the auto-filled environment details before posting to confirm accuracy.

Why this helps:

  • Reduces friction for contributors - especially newcomers who may be unfamiliar with all the environment fields.
  • Ensures more consistent and complete environment data across reports.
  • The manual templates remain useful as a reference for understanding what the plugin captures.

Happy to adjust the wording or placement if needed!

@huzaifaalmesbah

Copy link
Copy Markdown
Member Author

Install Test Reports directly from: (https://github.com/WPContrib/test-reports/archive/refs/tags/0.1.0.zip)

@nikunj8866 Thanks for the suggestion! I agree that pointing contributors to the Test Reports plugin is helpful. However, I already have a PR on the original plugin to update the templates to match this handbook format: afragen/test-reports#6

I think we can either use the original plugin URL or skip this section for now. Once the PR is merged, we can add the full section with the official wordpress.org plugin link. What do you think?

@nikunj8866

nikunj8866 commented May 19, 2026

Copy link
Copy Markdown
Collaborator

@huzaifaalmesbah That makes sense.

I've already pinged Andy Fragen and @costdev to review and merge afragen/test-reports#6, so I'd suggest we wait a few days to see if it gets merged. If it does, we can update this PR to include the full section with the official wordpress.org plugin link - which would be the cleanest outcome.

image

If we don't hear back in time, I think we have two reasonable paths:

  1. Merge this PR as-is (without the plugin section) and add it in a follow-up PR once the plugin is updated and published on wordpress.org.
  2. Include the section now with our forked build as a temporary reference: WPContrib/test-reports v0.1.0 - and update the link once the upstream PR is merged.

I'm leaning toward option 1 to keep things clean, but happy to go with whatever the team prefers. What do you think?

@3kori 3kori left a comment

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.

This PR is ready to go as is. If the PR to the test report plugin isn't merged any time soon, we can go with option 1 by @nikunj8866

@nikunj8866

Copy link
Copy Markdown
Collaborator

I got this response from Andy Fragen.

image

Per PR review feedback, add a "Generating Reports with the Test Reports Plugin"
section directing contributors to the plugin before the manual templates.
@huzaifaalmesbah

Copy link
Copy Markdown
Member Author

Andy Fragen has merged our PR and published a new release of the Test Reports plugin. I've updated this PR per @nikunj8866's suggestion. added the "Generating Reports with the Test Reports Plugin" section with install link, steps, and screenshots to both reproduction and patch testing pages.

This PR is ready for review. Let me know if any changes are needed!

@3kori 3kori left a comment

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.

LGTM!

@nikunj8866 nikunj8866 merged commit 2c36b0b into WordPress:trunk May 21, 2026
4 checks passed
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.

New Proposal for Reproduction and Patch Testing Reports

4 participants