10up-testing

Automate WordPress end-to-end testing workflows with PHPUnit, Jest, and Cypress for plugins and themes.

87|32|Updated Jul 3, 2015
One-click install
npx skills add https://github.com/petenelson/wp-rest-api-log --skill 10up-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 10up-testing
Source: https://github.com/petenelson/wp-rest-api-log/tree/main/.claude/skills/10up-testing
Command: npx skills add https://github.com/petenelson/wp-rest-api-log --skill 10up-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

WordPress projects often require separate testing stacks for PHP backends, JavaScript frontends, and end-to-end flows. This Skill consolidates PHPUnit, Jest, and Cypress testing into a cohesive workflow to improve reliability and confidence in releases.

Core Features & Use Cases

  • Provides a structured approach to unit, integration, and E2E tests across PHP, JS, and browser environments.
  • Includes guidelines and examples for PHPUnit, Jest, and Cypress setups, test factories, and coverage.
  • Use this Skill when adding tests, fixing flaky tests, or establishing a scalable testing infrastructure for WordPress plugins and themes.

Quick Start

Install the required testing suites for PHP, JavaScript, and Cypress and begin writing tests following the patterns above.

Frequently Asked Questions about 10up-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up end-to-end testing for WordPress plugins and themes?

End-to-end testing for WordPress requires configuring PHPUnit, Jest, and Cypress environments to automate UI flows, JavaScript frontend unit tests, and PHP backend integration suites. This approach provides a structured workflow covering unit, integration, and browser interactions.

Can I run PHPUnit and Jest tests in the same WordPress project?

Yes, you can run PHPUnit and Jest tests in the same WordPress project by configuring separate environments for PHP backend and JavaScript frontend testing. This consolidates your testing stacks into a cohesive workflow to improve release reliability.

What's the best way to organize Cypress tests for WordPress development?

Organizing Cypress tests for WordPress involves following established patterns for browser interaction flows and integrating them with your PHPUnit and Jest configurations. This ensures your end-to-end UI testing aligns with your backend and frontend unit test infrastructure.

Do I need to install separate testing suites for PHP and JavaScript in WordPress?

Yes, you need to install the required testing suites for PHP, JavaScript, and Cypress separately. Once installed, you can begin writing tests following structured patterns that cover unit, integration, and end-to-end flows across all environments.

Why does establishing a scalable testing infrastructure matter for WordPress releases?

A scalable testing infrastructure matters because WordPress projects often require separate testing stacks for PHP, JavaScript, and end-to-end flows. Consolidating these into a cohesive workflow improves reliability and confidence in your plugin and theme releases.