WordPress E2E & Unit Testing

WordPress testing featured Image

About the Project

This project is a work in progress, exploring how to set up a testing environment for WordPress.

My Project Goals

  • Create end-to-end tests using Playwright to test the front end interface.
  • Use PHPUnit to create unit and integration tests for the WordPress backend.
  • I want to connect all of these tests to Jenkins or Github Actions to create a full CI/CD pipeline.

Technical Highlights

This project is about building a robust testing environment for WordPress, a practice I’ve seen widely used in other software companies but rarely on WordPress sites. On the front end, I’m using Playwright to build automated end-to-end tests that ensure the interface works as expected. On the back end, I’m using PHPUnit to create unit and integration tests that verify WordPress core functionality and any custom code.

I currently use GitHub Actions for automated deployments, and I’m working on connecting all of these tests to Jenkins or GitHub Actions to create a full CI/CD pipeline that handles both testing and deployment. The goal is to provide full-stack coverage and a scalable workflow that can grow with the project and be reused for future WordPress applications.