Tag: unit testing
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!
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.
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!
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.
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!
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.