Test

🏢Official
by automattic · vlatest · Repository

Automatically generates and runs basic website tests to identify common accessibility and performance issues.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add automattic-test npx -- -y @trustedskills/automattic-test
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "automattic-test": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/automattic-test"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

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.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
automattic
Installs
41

🏢 Official

Published by the company or team that built the technology.