Learn about Testing

Learn software testing concepts and techniques, including unit testing, integration testing, and end-to-end testing, to ensure code quality and reliability.

All Testing tutorials:

  1. Tips to Avoid Brittle UI Tests

    Tips to Avoid Brittle UI Tests

    Tutorial Intermediate

    In the last article I talked about a few ideas and patterns, like the Page Object pattern, that help write maintainable UI tests. In this article we are...

  2. Advanced Unit Testing Techniques in JavaScript

    Advanced Unit Testing Techniques in JavaScript

    Tutorial Intermediate

    By now, everyone knows about Test-Driven Development and unit testing. But are you using the testing frameworks to their fullest?

  3. Headless Functional Testing with Selenium and PhantomJS

    Headless Functional Testing with Selenium and PhantomJS

    Tutorial Advanced

    Let's build a system for performing functional tests on web applications, using Selenium and PhantomJS. The resulting system will allow us to write easy test...

  4. Testing Like a Boss in Laravel: Models

    Testing Like a Boss in Laravel: Models

    Tutorial Advanced

    If you're hoping to learn why tests are beneficial, this is not the article for you. Over the course of this tutorial, I will assume that you already...

  5. How to Use Selenium 2 With PHPUnit

    How to Use Selenium 2 With PHPUnit

    Tutorial Intermediate

    In this lesson, we will learn how to work with Selenium 2 directly within PHPUnit. For those unfamiliar, Selenium gives us an easy way to automate the...

  6. Let's TDD a Simple App in PHP

    Let's TDD a Simple App in PHP

    Tutorial Intermediate

    In this tutorial, I will present an end-to-end example of a simple application - made strictly with TDD in PHP. I will walk you through each step, one at a...

  7. Test-Driven Development in PHP: First Steps

    Test-Driven Development in PHP: First Steps

    Tutorial Intermediate

    Let's admit it: the PHP community has lagged a bit, when it comes to advocating test-driven development. We know we should, but, even to this day, a sizable...

  8. Writing an API Wrapper in Ruby with TDD

    Writing an API Wrapper in Ruby with TDD

    Tutorial Beginner

    Sooner or later, all developers are required to interact with an API. The most difficult part is always related to reliably testing the code we write, and,...

  9. Test-Driven JavaScript Development in Practice

    Test-Driven JavaScript Development in Practice

    Tutorial Intermediate

    TDD is an iterative development process where each iteration starts by writing a test which forms a part of the specification we are implementing. The short...

  10. The Newbie's Guide to Test-Driven Development

    The Newbie's Guide to Test-Driven Development

    Tutorial Beginner

    Testing your code is annoying, but the impact of not doing so can be orders of magnitude more annoying! In this article, we'll use test-driven development to...

  11. Testing Your JavaScript With Jasmine

    Testing Your JavaScript With Jasmine

    Tutorial Intermediate

    We all know we should be testing our code, but we don’t actually do it. I guess it’s fair to say that most of us put it off because, nine times out of ten,...

  12. 13 Ways to Browser Test and Validate Your Work

    13 Ways to Browser Test and Validate Your Work

    Tutorial Beginner

    Every day, when reviewing templates on ThemeForest, I test the submissions for validation and browser compatibility - not to mention my own work as well....