activitypub-testing
Standardized testing patterns for WordPress ActivityPub plugin, covering PHPUnit unit tests and Playwright E2E integration tests.
Introduction
This skill provides a structured framework for validating WordPress ActivityPub plugin features. It is designed for developers tasked with maintaining plugin stability, implementing new federation logic, or debugging complex test failures. The skill encapsulates best practices for isolating functional units through PHPUnit and verifying system-wide behaviors using Playwright E2E testing. Users can leverage this to set up robust testing environments, maintain test coverage, and ensure consistent interactions across decentralized nodes.
-
Standardized PHPUnit test structures for WordPress integration including setup and tear-down lifecycle methods.
-
Playwright E2E scripts for testing administrative settings, UI components, and API discovery endpoints like WebFinger.
-
Guidance on using @group annotations to categorize tests by feature area such as federation, transformers, or handlers.
-
Data factory integration for generating users, posts, and comments to simulate real-world WordPress data scenarios.
-
Debugging techniques including verbose logging, test filtering for isolation, and failure stop conditions.
-
Ensure the environment is configured as per the project documentation before executing test commands.
-
Utilize npm run env-test for PHPUnit and npm run test:e2e for Playwright integration workflows.
-
Apply test utilities from the local repository for consistent mocking of HTTP requests and plugin-specific services.
-
Note that this skill assumes familiarity with the WordPress testing ecosystem and asynchronous Playwright testing patterns.
Repository Stats
- Stars
- 211
- Forks
- 28
- Open Issues
- 4
- Language
- Python
- Default Branch
- main
- Sync Status
- Idle
- Last Synced
- May 3, 2026, 09:26 AM