Alejandro Celaya | Blog

Software development, agile methodologies and open source software.

tag Archive — "unit-testing"

— 2022 —

My experience migrating from enzyme to react testing library

Recently ReactJS v18 was released. I started to look into its improvements, and checked which of my projects could benefit from them. The main react-based project I maintain at the moment of writing this article is shlink-web-client, so I naturally created a new branch and started the process. The u…

— 2019 —

Is spying on mocks a bad practice for unit tests?

For a long time, I have been trying to include tests in every project in which I've worked on. There are several types of automated tests (or what should actually be called automated checks). From unit tests, integration and functional tests, to end-to-end tests. Each one of them differs from the re…

— 2018 —

Mutation testing with infection in big PHP projects

There's no doubt that having tests in a project allows you to find potential bugs earlier and more easily. Lots of OSS projects require a minimum code coverage in order to accept new pull requests from contributors, and proprietary projects also tend to have some sort of continuous integration workf…

— 2014 —

Unit testing Zend Framework 2 modules

One of the first articles I wrote in this blog was an introduction to unit testing PHP applications. You can find it here in case you need to know the first steps and the theory. On this article I'm going to explain how to get a Zend Framework 2 module tested. It is indeed very similar to test any P…

Introduction to PHP unit testing with PHPUnit

Nowadays we are in the era of agile methodologies. One of the best practices promoted by these methodologies is Test-Driven Development (TDD) It mainly consists on preparing small pieces of code that are responsible for testing parts of the real application. For this purpose each of the main program…


Older postsNewer posts