WordPress / WordPress/phpunit-test-runner

Add support for running additional tests for adjacent projects (canonical and feature plugins)

Open
#253 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ContributorDay enhancement tooling WCUS26
Dominant language
PHP
Stars
77
Forks
77
Avg merge
15d 15h
Merged PRs (30d)
4

Description

Is your feature request related to a problem? Please describe.
Given that there are Canonical Plugins that are officially recommended and supported by the Core team/surrounding communities as well as feature plugins that aspire to be merged into Core one day, it would be great to add support for running the unit tests for these plugins in addition to the test suite for Core itself.

Describe the solution you'd like
The runner could accept a list of plugins to run tests for after running the Core test suite.

WPT_TEST_PLUGINS="wordpress-importer,gutenberg"

Additional context
This may not be possible if the setup required for each plugin is inconsistent without some level of coordination.

The reporter would also need to be updated to consume the additional data.

Props to @getsource for this idea during the review of #249.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating the runner's existing Core test flow and the reporter, then review how plugin setup is handled; done means accepting a plugin list, running the additional plugin tests, and exposing their results in the reporter.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
ci-cd, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.