https://github.com/stevegrunwell/confidently-testing-wordpress
Slides for "Confidently Testing WordPress"
https://github.com/stevegrunwell/confidently-testing-wordpress
reveal-js slides testing wordpress
Last synced: 7 months ago
JSON representation
Slides for "Confidently Testing WordPress"
- Host: GitHub
- URL: https://github.com/stevegrunwell/confidently-testing-wordpress
- Owner: stevegrunwell
- Created: 2019-02-20T02:29:01.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-07-21T14:10:56.000Z (over 3 years ago)
- Last Synced: 2025-04-09T16:09:00.315Z (10 months ago)
- Topics: reveal-js, slides, testing, wordpress
- Language: CSS
- Size: 2.28 MB
- Stars: 18
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Confidently Testing WordPress
WordPress is a tightly-coupled system, representing over a decade and a half of ideas, decisions, technological shifts, and ideological struggles. There's a lot of history to be parsed and often the simplest task can have unintended consequences.
Meanwhile, automated testing is one of the best ways to ensure software can be released regularly with high confidence and low risk of regressions. Sadly, the leap from "building WordPress plugins" to "building WordPress plugins with tests" is often viewed as a challenging hurdle. Luckily, there are tools to set up a test harness within an existing codebase with ease.
This talk introduces the fundamentals of automated testing, especially within the context of WordPress. After developing an understanding why automated testing is so critical, attendees will learn how to begin testing their plugins and themes, using features found both in PHPUnit and the WordPress core testing framework, to build and release quality software.
:sparkles: **[View slides](http://stevegrunwell.github.io/confidently-testing-wordpress)** :sparkles:
## Resources
* [PHPUnit](https://phpunit.de/)
* [WordPress automated testing docs](https://make.wordpress.org/core/handbook/testing/automated-testing/phpunit/)
* [The Five Types of Test Doubles and How to Create them in PHPUnit](https://jmauerhan.wordpress.com/2018/10/04/the-5-types-of-test-doubles-and-how-to-create-them-in-phpunit/)
* [Mockery](http://docs.mockery.io/en/latest/)
* [PHPUnit Markup Assertions](https://github.com/stevegrunwell/phpunit-markup-assertions)
* [Trac ticket #46149: PHPUnit 8.x support](https://core.trac.wordpress.org/ticket/46149)
## Presentation History
* [WordCamp US 2019](https://2019.us.wordcamp.org) — November 2, 2019 ([PDF](https://github.com/stevegrunwell/confidently-testing-wordpress/releases/download/wordcamp-us-2019/slides.pdf))
* [Cascadia PHP 2019](https://2019.cascadiaphp.com) — September 20, 2019 ([PDF](https://github.com/stevegrunwell/confidently-testing-wordpress/releases/download/cascadia-php-2019/slides.pdf), [Joind.in](https://joind.in/talk/e126f))
* [WordCamp Grand Rapids 2019](https://2019.grandrapids.wordcamp.org) — July 13, 2019 ([PDF](https://github.com/stevegrunwell/confidently-testing-wordpress/releases/download/wordcamp-grand-rapids-2019/slides.pdf))
* [WordCamp Kent 2019](https://2019.kent.wordcamp.org) — June 15, 2019 ([PDF](https://github.com/stevegrunwell/confidently-testing-wordpress/releases/download/wordcamp-kent-2019/slides.pdf))
* [WordCamp Dayton 2019](https://2019.dayton.wordcamp.org) — March 2, 2019 ([PDF](https://github.com/stevegrunwell/confidently-testing-wordpress/releases/download/wordcamp-dayton-2019/slides.pdf))
## Credits
* Struggle Wapuu by [Michelle Schulp](https://mynameismichelle.com/)