Test
OfficialAutomatically generates and runs basic website tests to identify common accessibility and performance issues.
Install on your platform
Showing Claude Code. One command installs this skill into any of the agents below.
- 1
Run this in your project
terminal$ npx skills add automattic/wordpress-activitypub --skill test -a claude-code Uses the open-source
skillsCLI and needs Node.js. Add-gto install it for your user instead of this project.
What we know about this skill
Publisher
automattic
Matched to the vendor's own GitHub organisation.
Install target
Live repository
Not pinned. Installing fetches whatever the repository holds at the time you run the command.
Automated safety checks
We could not read this skill's source, so none of the checks below were run.
About this skill
What it does
This skill provides guidance and tools for testing the WordPress ActivityPub plugin. It enables AI agents to execute specific commands for PHP, JavaScript (unit), and end-to-end (E2E) tests related to the plugin's functionality. The skill also offers instructions on test structure, common patterns, mocking HTTP requests, creating test data, generating coverage reports, debugging tests, and isolating individual tests.
When to use it
- When developing or maintaining the WordPress ActivityPub plugin.
- To verify new features or bug fixes within the ActivityPub plugin.
- For automated testing of federation functionality (e.g., WebFinger discovery).
- To generate test coverage reports and identify areas for improvement in code quality.
Key capabilities
- PHP Unit Testing: Provides guidance on PHPUnit test structure, setup, teardown, and common patterns.
- JavaScript Unit Testing: Supports JavaScript unit testing using
npm run test:unit. - End-to-End (E2E) Testing: Facilitates E2E testing with Playwright, including examples for loading the ActivityPub settings page and verifying WebFinger discovery.
- Test Data Factories: Offers instructions on creating test data like users, posts, and comments.
- Debugging Tools: Provides methods for debugging tests using
var_dumpanderror_log. - Isolation & Control: Allows running single test methods and stopping execution upon the first failure.
Example prompts
- "Run the PHP unit tests for the ActivityPub plugin."
- "Execute the end-to-end test to verify the ActivityPub settings page loads correctly."
- "Generate a coverage report for the ActivityPub plugin's code."
Tips & gotchas
- Refer to the "Testing Reference" document (linked within the skill) for complete testing commands and environment setup.
- The E2E tests use Playwright, so familiarity with this framework is helpful.
- Use
@groupannotations in PHPUnit tests to categorize and filter test execution.