From the course: WordPress: Workflows

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Automated testing

Automated testing - WordPress Tutorial

From the course: WordPress: Workflows

Start my 1-month free trial

Automated testing

- [Narrator] Another recent practice becoming popular in the WordPress space is automated testing. Automated testing is running tests on your code and your interface without the need for manual or human intervention. This means that instead of pushing your code to a staging server and testing it there hoping it doesn't break other functionality, you can automate certain tests to ensure the code works before pushing it. There are a few types of automated tests pertinent to WordPress. Unit tests are for testing a specific component of your code to make sure it works on its own. A simple example is if we have a function to add two numbers. We could define the input that function gets and what the result should look like. Then, the unit test will run to verify the code produces the expected results. Generally, the programmer writing the code can also set up the unit test. Integration tests are a little more complex. These…

Contents