Tag: unit testing
Camilo Reyes explores what it takes to unit test React components and the thought process required for making components testable.
Let's take a fresh look at PHPUnit - the de-facto TDD tool for PHP. We'll explain TDD on an example, implement code coverage, and more!
Chris writes test watchers: auto-compiling PHP from Preprocess files, and auto-testing after every file-change. No need to manually run PHPUnit ever again!
We focus on Behat now to further extend Sylius in true TDD fashion. We write stories, we test against them, and then we develop features to make them pass!
Deji extends the core of Sylius by adding some back end features via true TDD: writing PhpSpec tests first, seeing that they fail, and then making them pass
Jani Hartikainen looks at testdouble.js (a new mocking library with a streamlined API) and puts it head-to-head with Sinon.js, the JS test double incumbent.
James Wright introduces test-driven development and walks through creating and refactoring a simple form validation library, step-by-step, as an example.
We look at Sylius - a fully tested and super-robuts e-commerce platform/framework, and use it to learn some proper Test Driven Development!
Let's take a look at Peridot - a testing suite with a different approach. Can we BDD test our units? Should we?
Alex Bilbie looks at Jenkins' newest feature: pipelines. With it, we configure Laravel's auto-testing procedure, and make sure our builds stay alive!
Matthew Setter takes an introductory look at atoum - an alternative to PHPUnit with an interesting twist
Here's a quick way to get rid of filesystem troubles (cleanup anyone?) when practicing TDD - virtual file systems!
We use tests to test our code. But... how do we test our tests? Let's take a look at Humbug: a mutation testing framework!
Did you miss the PHPUnit 5 train? Hop on board and find out what's new!
Chris Pitt starts developing a new PHP package with TDD practices in mind - using PhpUnit and Mockery all the way. Check it out!
Vitalij Mik goes through a from-scratch UseCase implementation to demonstrate Clean Code Architecture and Test Driven Development on a Guestbook app!
Taylor Lovett explains how WordPress developers can use Dockunit in combination with Dockunit.io for easy cross-platform continuous integration.
Jani Hartikainen explains how to deal with promises in unit tests using Mocha and Chai as the base and showing promise-related patterns that occur in tests.
Younes Rafie demonstrates the use of Selenium for acceptance testing and browser automation in tandem with PHPUnit
In this article Ravi Kiran covers most of the AngularJS testing tips that he learned over the past two years. You'd better not miss it!
Ravi Kiran continues to discuss how to test AngularJS-based projects by teaching you how to test directives.
With version 8 looming on the horizon, Danny ups our development game with automated testing of Drupal 8 modules - write functional tests like a pro!
Christian Johansen concludes his mini-series by discussing composed validators, how to extract data from a form element, and how to report errors.
Thanks to dependency injection, AngularJS makes it easy to unit test your code. Ravi Kiran shares some tips on testing services, controllers and providers.
Christian Johansen discusses the concept and the problems of having a tightly coupled code and how to write code that doesn't depend on the DOM.
Bruno Skvorc reviews the grumpy programmer's guide to building testable applications and the PHPUnit testing cookbook. Should you buy them? Read to find out