Search Results for ‘unit test

  • Thorsten Frommen: An Introduction to Unit Testing (for WordPress)

    Thorsten Frommen: An Introduction to Unit Testing (for WordPress)

    WordCamp London 2018Speaker: Thorsten Frommen

    October 5, 2018 — Thorsten first provides a high-level overview of unit testing in general, and classifies it in terms of test level, and testing methods and techniques. He then explores and explains different possible units. The second part of the talk is dominated by one of the key principles of unit testing: testing in isolation. What is it? How can it be done? What is this mocking that pops up here and there? Next, Thorsten shows different unit test examples, involving both PHP and JavaScript, and highlighting different (yet simplified) aspects of real-life code. Thorsten concludes with a few tips for writing good unit tests.

  • Carl Alexander, Giuseppe Mazzapica, Thorsten Frommen: An Introduction to Unit Testing (for WordPress)

    Carl Alexander, Giuseppe Mazzapica, Thorsten Frommen: An Introduction to Unit Testing (for WordPress)

    WordCamp Europe 2018Speakers: Carl Alexander, Giuseppe Mazzapica, Thorsten Frommen

    August 13, 2018 — This is a development-specific workshop, so you should have an idea about coding in general. Besides that, the workshop itself does not require any specific skill or knowledge.

    We’ve all had these “Wait, what? That worked the other day!” moments. They usually happen after we introduced a new feature but broke existing functionality in the process. This is why we often don’t feel confident that our code is working as expected. When developing plugins—or whole websites—this is important, though. Clients expect that making changes won’t break their sites. But can we be sure of that?

    There is a solution for that, and it’s called Unit Testing! During this hands-on workshop, we’ll help you understand what testable code is and how to write unit tests for it. Armed with this knowledge, you’ll be able to prevent these embarrassing moments from ever happening again.

  • David Biňovec: UNIT Testy ve WordPress – testujte, testujte a testujte od David Biňovec

    David Biňovec: UNIT Testy ve WordPress – testujte, testujte a testujte od David Biňovec

    WordCamp Prague 2017Speaker: David Biňovec

    July 28, 2018 — Přednáška od Davida Biňovce na téma UNIT Testy ve WordPress – testujte, testujte a testujte.

  • Behzod Saidov: Introduction to Unit Testing WordPress Plugins - Part 2

    Behzod Saidov: Introduction to Unit Testing WordPress Plugins – Part 2

    WordCamp San Diego 2018Speaker: Behzod Saidov

    April 27, 2018 — This presentation is an introduction to how to unit test WordPress plugins. PHPUnit is the standard PHP testing framework, but getting it working with a WordPress plugin is challenging. The presentation covers: – Advantages that unit tests provide – Scaffolding a new plugin and its unit tests using WP-CLI – Writing and running the first unit test.

  • Behzod Saidov: Introduction to Unit Testing WordPress Plugins - Part 1

    Behzod Saidov: Introduction to Unit Testing WordPress Plugins – Part 1

    WordCamp San Diego 2018Speaker: Behzod Saidov

    April 27, 2018 — This presentation is an introduction to how to unit test WordPress plugins. PHPUnit is the standard PHP testing framework, but getting it working with a WordPress plugin is challenging. The presentation covers: – Advantages that unit tests provide – Scaffolding a new plugin and its unit tests using WP-CLI – Writing and running the first 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 »