Skip to content
TrustedSkillsbeta
Back to all skills

Test

Official
automattic·vlatest·testing·MIT

Automatically 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. 1

    Run this in your project

    terminal
    $ npx skills add automattic/wordpress-activitypub --skill test -a claude-code
  2. Uses the open-source skills CLI and needs Node.js. Add -g to 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.

Nobody has reviewed this code. TrustedSkills indexes and links skills; it does not audit, run or scan them. A skill runs with whatever access you give your agent — read the source before you install it.

Automated safety checks

scanned

We could not read this skill's source, so none of the checks below were run.

Not scanned. no SKILL.md in the repository Source recorded as automattic/wordpress-activitypub.
This is a static scan, not a review. It reads the skill's files; it does not run them, and it cannot tell you whether the skill is any good or whether the code does what its description says. A skill runs with whatever access you give your agent.
What each check looks for →

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_dump and error_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 @group annotations in PHPUnit tests to categorize and filter test execution.