Search Results for ‘unit test

  • Harshad Mane: Unit Testing for WordPress

    Harshad Mane: Unit Testing for WordPress

    WordCamp Kathmandu 2017Speaker: Harshad Mane

    June 19, 2017 — Harshad Mane is a PHP Programmer and a WordPress Enthusiast. He’s passionate about WordPress, and using it to develop modern and impressive websites. The talk has covered:
    1. What is PHPUnit testing.
    2. Why unit testing is important?
    3. Difference between Unit and Acceptance test.
    4. Introduction to PHPUnit,
    5. How to setup PHPUnit using WP-CLI.
    6. Assertion Methods.
    7. How to write test cases.

    Presentation Slides »

  • Dennis Ploetner: Lightning Talk - Unit Testing for Plugin Developers

    Dennis Ploetner: Lightning Talk – Unit Testing for Plugin Developers

    WordCamp Berlin 2015Speaker: Dennis Ploetner

    February 4, 2016 — This session gives an introduction to how to test WordPress plugins with unit tests, focusing on the advantages it provides. We’ll have a look together at the main steps to set up a first test case.

    Presentation Slides »

  • Carl Alexander: Introduction to WordPress Unit Testing

    Carl Alexander: Introduction to WordPress Unit Testing

    WordCamp US 2015Speaker: Carl Alexander

    December 10, 2015 — Let unit testing save you from this nightmare. It’s a lot like coding with a safety net (or body armor if that’s how you roll). It lets you go a bit crazy while minimizing repercussions (as long as the police don’t show up).
    Want to try something new? No worries! It’ll let you know if something isn’t working as it should. That’s how most paid plugins maintain a high level of quality over the years.

  • Hiroshi Urabe, Takashi Kitajima and Takahiro Horike: WordPress Unit Test and Continuous Integration

    Hiroshi Urabe, Takashi Kitajima and Takahiro Horike: WordPress Unit Test and Continuous Integration

    WordCamp Kansai 2015Speakers: Hiroshi Urabe, Takashi Kitajima, Takahiro Horike

    December 7, 2015 — 継続的インテグレーション、CI(英: continuous integration)とは、主にプログラマーのアプリケーション作成時の品質改善や納期の短縮のための習慣のことです。(wikipedia引用)
    本セッションではPHPUnitやTravis CI、WordMoveなどを使用して、WordPressで開発を行う際のCIの手法を紹介します。セッション後はハンズオンを実施してより実践的な内容を参加者の皆様には持ち帰って頂きます。

  • Tim Nash: Going Beyond Unit Tests

    Tim Nash: Going Beyond Unit Tests

    WordCamp London 2015Speaker: Tim Nash

    May 29, 2015 — This talk introduces the concept of behaviour driven tests, rather then looking at the codes logic these tests looks at the larger application and checks it does what we and our boss expects. It focuses around the using Codeception a PHP based testing suite with WordPress to provide acceptance, visual regression and API test coverage for plugin, themes and sites. The talk is suitable for any developer, who is interesting in improving testing within their applications, especially those who may have been in the past put off by unit testing. The goal to speed up peoples development by automating testing they already do and improve coverage of tests, as well as looking at interesting “other uses” for acceptance testing.

    Presentation Slides »

  • Richard Ozh : Des Unit Tests pour ses plugins – pourquoi, comment ?

    Richard Ozh : Des Unit Tests pour ses plugins – pourquoi, comment ?

    WordCamp Paris 2015Speaker: Richard Ozh

    April 4, 2015 — Certains plugins rajoutent à WordPress une ou quelques fonctionnalités, d’autres sont au contraire une véritable suite logicielle supplémentaire. Pour tous ces plugins, écrire des unit tests (« tests unitaires » en français) peut sembler lourd, compliqué, inutile, voire même les trois à la fois.

    Cette conférence démystifiera le concept obscur et parfois effrayant des unit tests, expliquera pourquoi il faut en écrire, même pour des plugins simples, comment en écrire, et enfin comment automatiser les tests pour accélerer le développement.

    Presentation Slides »

  • Daniel Convissor: Unit Testing WordPress Plugins with PHPUnit

    Daniel Convissor: Unit Testing WordPress Plugins with PHPUnit

    WordCamp NYC 2014Speaker: Daniel Convissor

    November 19, 2014 — Trust me, maintaining software is sooo much easier when you have unit tests to let you know when changes meet their goals or introduce new bugs. PHPUnit is the standard suite for testing and analyzing PHP code. But getting PHPUnit working with a WordPress plugin is challenging. This presentation explains the unit tests created for the Login Security Solution plugin. How to mediate the conflict between WordPress’ heavy reliance on globally scoped variables (groan) and PHPUnit’s squashing of global variables
    How to test calls to wp_mail(), wp_logout(), wp_redirect()
    How to continue execution after PHP produces expected errors
    Verifying database inserts that have auto-increment ID’s

  • Curtis McHale: Getting Started With Unit Tests

    Curtis McHale: Getting Started With Unit Tests

    WordCamp Vancouver 2014Speaker: Curtis McHale

    September 8, 2014 — We all know that we should probably be testing our code but how on earth do you start? Well we’re going to talk about WP CLI and Vagrant and how that sets up testing for you. We’ll take a look at some test patterns and a Github repo started to hold test patterns for people to refer to.

    Presentation Slides »

  • Eric Mann:  {12} Needs Unit Tests

    Eric Mann: {12} Needs Unit Tests

    WordCamp Phoenix 2014Speaker: Eric Mann

    June 12, 2014 — Unit testing can be scary for anyone who’s not a hard-core dev. But they don’t need to be! I’ll help you get up and running with the WordPress unit test framework so your new patches will never need to sit idle on this report page again! Even if you don’t have a patch to contribute to WordPress, you can still get your name on the contributor list by writing tests for any patches that live on this report, too!

  • Ben Lobaugh: Unit Testing Plugins

    Ben Lobaugh: Unit Testing Plugins

    WordCamp Las Vegas 2013Speaker: Ben Lobaugh

    March 29, 2014 — Your plugin is broken; do you know why? This session shows some simple principles to help you integrate unit testing in your plugins that will help you find and eliminate bugs before they happen.

    Presentation Slides »