Benefits of Test Driven Development for WordPress Developers

Опубликовано: 26 Октябрь 2024
на канале: WPwatercooler - Weekly WordPress Discussions
274
6

This month on Dev Branch we'll be discussing Test Driven Development with Steve Grunwell. In this podcast, Steve discusses the importance of test-driven development (TDD) in software development, including the benefits it can bring in terms of catching bugs and reducing maintenance overhead. They also discuss the challenges of implementing TDD in legacy code, but emphasize that it is still possible and worth the effort. The panel also discuss the different types of tests that can be used, including unit tests, integration tests, and acceptance tests, and the importance of testing in the WordPress ecosystem for plugin and theme developers. They also discuss the tools and resources available to help developers implement TDD in their projects, and the importance of blurring the lines between unit testing and integration testing when working with WordPress.

Highlights
The benefits of test driven development (TDD) in software development
The challenges of implementing TDD in legacy code
Different types of tests that can be used, including unit tests, integration tests, and acceptance tests
The importance of testing in the WordPress ecosystem for plugin and theme developers
Tools and resources available to help developers implement TDD in their projects
The importance of blurring the lines between unit testing and integration testing when working with WordPress
Links
Confidently Testing WordPress
The Five Types of Test Doubles & How to Create Them in PHPUnit
PEST
Behat
Confidently Testing WordPress
Steve Grunwell: Confidently Testing WordPress
Chapters:

0:00 - Introduction
1:16 - Guest introduction
3:08 - Test driven development
5:00 - Has the ship sailed for test driven development in WordPress?
8:40 - Writing the expected outcome before writing the code
12:11 - What can be done to improve testing in WordPress?
19:45 - Frameworks for WordPress testing
27:21 - How should a new developer begin with testing?
30:02 - Wrap up!
31:05 - Outro

Confidently Testing WordPress
https://stevegrunwell.com/slides/test...

The Five Types of Test Doubles & How to Create Them in PHPUnit
https://jmauerhan.wordpress.com/2018/...

PEST
https://pestphp.com/

Behat
https://behat.org/

Confidently Testing WordPress
https://github.com/stevegrunwell/conf...

Steve Grunwell: Confidently Testing WordPress
https://wordpress.tv/2019/06/19/steve...

Show Notes:
EP24 - Test Driven Development - Dev Branch
https://wpwatercooler.com/devbranch/t...


Subscribe to our Audio Podcast

Apple Podcasts
https://podcasts.apple.com/ca/podcast...

Google Podcasts
https://podcasts.google.com/feed/aHR0...

Overcast
https://overcast.fm/itunes1500351968

PocketCasts
http://pca.st/itunes/1500351968

Castro
https://castro.fm/itunes/1500351968

Spotify
https://open.spotify.com/show/6n4O74Q...

Panel:
Steve Grunwell - https://stevegrunwell.com
Jason Tucker – https://jasontucker.blog
Sé Reed – https://sereedmedia.com
Jason Cosper – https://jasoncosper.com

#WordPress #WebDevelopment #WordPressPlugins

Want to create live streams like this? Check out StreamYard: https://streamyard.com/pal/5756954563...