Upgrade to Pro — share decks privately, control downloads, hide ads and more …

February 2017 Meetup - Introduction to WordPres...

February 2017 Meetup - Introduction to WordPress Theme Unite Testing

The presentation was lead by Priyanka Behara @ Ahmedabad WordPress Meetup on 26th February 2017.

Ahmedabad WordPress Meetup

February 26, 2017
Tweet

More Decks by Ahmedabad WordPress Meetup

Other Decks in Technology

Transcript

  1. What is theme unit testing? The Theme Unit Testing are

    manual tests to walk through to test theme functionality and how the theme responds to edge-cases of content and settings.
  2. Why this is important? Testing is incredibly important before releasing

    a theme. You maybe have built the most beautiful WordPress theme, but if it breaks when someone tries to comment or insert an image, your theme isn’t ready for real world usage. It Save time.
  3. Where we use it ? Theme Unit Test Regular Projects

    WordPress Theme review wordpress.org ThemeForest Theme Submission
  4. 1. Set up the development Environment 1. Install the Wamp

    server if you don’t have. Or start the wamp/Xampp/Mamp server. 2. Download the latest version of wordpress from wordpress.org and install the wordpress in local server. 3. Install your theme which you want to test.
  5. 2. Need the test content 1. WordPress provided the theme

    testing content in the xml file. https://wpcom-themes.svn.automattic.com/demo/t heme-unit-test-data.xml WP Test 2. You can install testing tools and plugins.
  6. Theme Testing plugins 1. Developer Plugin 2. Demo Data Creator

    – buddypress, shopping sites, support multisite 3. Lipsum 4. WP Example Content
  7. 3. Debug Plugins 1. Theme Check Plugin 2. Debug Bar

    Plugin 3. Log Deprecated Notice
  8. Basic Tips and Tricks for mannual theme testing Custom Menus

    • Long Menu: all included Pages with submenu • Short Menu: a menu of 2-3 Pages Design all default page :- index.php, archive.php, category.php etc.
  9. Basic Tips and Tricks for mannual theme testing General Settings:

    Set the Site Title to something long and set the Tagline to something even longer. These settings will test how your theme handles edge cases for site titles and taglines. Permalinks Ensure that a non-default permalink setting is selected, e.g. "Month and name". This setting will facilitate stepping through the Theme Unit Tests.