magnASCII.io Simone Magnaschi
Senior Full Stack Web Dev
Bookmarks tagged with #testing.
Show all

Testing without mocking frameworks.

Over the years, my coding practices have changed a lot. From hacking away until it works to TDD/BDD/DDD and everything in between. One of the biggest changes in my developer career has been when, why, and how I test my code. In particular, my view on mocking frameworks has changed a lot.
Saved on: 2023-03-28

sarven/unit-testing-tips

In these times, the benefits of writing unit tests are huge. I think that most of the recently started projects contain any unit tests.
Saved on: 2022-12-21

Quick Testing Tips: Self-Contained Tests — Matthias Noback - Blog

Whenever I read a test method I want to understand it without having to jump around in the test class (or worse, in dependencies). If I want to know more, I should be able to "click" on one of the method calls and find out more.
Tags: #testing
Saved on: 2021-09-01

Unit testing tips by examples in PHP

I just created a repository on Github with examples of good unit testing in PHP. I still work on these tips. I will also try to write more about some
Saved on: 2021-02-19

Automated testing: a step back

The goal of this article is to define basic concepts related to testing, trying not to take anything for granted. Why is it important to write automated tests? I asked myself and I did some research because the answer to this question was not obvious to me.
Tags: #testing
Saved on: 2020-10-23

How to run over 30k tests in under 5 minutes | by Daan van Marsbergen | Sep

When I started my professional career I had no idea what a unit test looked like. I think I skipped that part on W3Schools. It didn’t matter, because my first employer was not using tests.
Tags: #testing #php
Saved on: 2020-10-09

How to run over 30k tests in under 5 minutes | by Daan van Marsbergen | Sep

When I started my professional career I had no idea what a unit test looked like. I think I skipped that part on W3Schools. It didn’t matter, because my first employer was not using tests.
Tags: #testing #php
Saved on: 2020-09-04

Enhancements to PHP code coverage in 2020

In 2003, with the release of Xdebug 1.2, Derick Rethans introduced the ability to collect code coverage data to the PHP ecosystem for the first time.
Tags: #testing #php
Saved on: 2020-08-01

PHP Insights

Analysis of code quality and coding style. Beautiful overview of code architecture and it's complexity. Designed to work out-of-the-box with Laravel, Symfony, Yii, WordPress, Magento2, and more.
Saved on: 2020-06-27

TeamCity UI: How Do We Test It?

Developing a working piece of software is difficult. Just like building an airplane, it requires talented people, working components, and a testing framework. No plane leaves the hangar before everything is ready, checked, and double-checked.
Saved on: 2020-06-26

3 steps to add tests on existing code when you have short deadlines

The code requires significant changes to support unit tests. I have deadlines to meet! You have that pile of Legacy Code you need to change.
Tags: #testing
Saved on: 2020-03-27

How to Turn Mocks from Nightmare to Solid Kiss Tests | Tomas Votruba

Martin Hlaváč had a very nice talk about testing in Berlin PHP Meetup last week (while I hosted with Rector), and one of the topic was mocking. Did you know there is easier and more clear way to do "mocking"?
Tags: #testing
Saved on: 2020-02-14

Lessons Learned from Testing and Refactoring Legacy – 24 Days in December

I remember when I first discovered automated testing. I immediately wanted to apply it to all the projects that I was working on, but it didn’t work as well as I expected. In fact, it was a disaster, which is why so many developers shy away from tests after a few failed attempts.
Tags: #testing #php
Saved on: 2019-12-05

Your tips to write testable (PHP) code?

I'm going to make a quick seminar for my team on how to improve the testability of our (15 years old) PHP code-base. Do you have any specific tips and
Saved on: 2019-10-05

How to write testable code

This is something I put together for the engineering team at Howsy. Hopefully it will be of some assistance for others. The examples are in PHP but can be abstracted to any OOP language It’s simply a test that runs against an individual ‘unit’ or component of software.
Tags: #testing
Saved on: 2019-07-16

The Three Types of Performance Testing – CSS Wizardry – CSS Architecture, W

A lot of companies—even if they are aware that performance is key to their business—are often unsure of how, when, or where performance testing sits within their development lifecycle.
Saved on: 2019-07-15

Keeping (large) data providers organized in PHPUnit - DEV Community ?‍??‍?

When using data providers for you PHPUnit tests, it's easy to get carried away and add loads of different test cases with subtle differences in parameters.
Tags: #testing #php
Saved on: 2019-02-18

Unit Test Your First Vue.js Component

In Build Your First Vue.js Component we made a star rating component. We’ve covered many fundamental concepts to help you create more complex Vue.js components. Yet, there’s one crucial point you need to build bulletproof components you can use in production: unit testing.
Saved on: 2018-10-10

Page Object Model (POM) | Design Pattern

Page Object Model is a design pattern which has become popular in test automation for enhancing test maintenance and reducing code duplication. A page object is an object-oriented class that serves as an interface to a page of your AUT.
Tags: #testing
Saved on: 2018-06-02

Regaining trust in your test suite with Docker.

Docker, and containerised services in general, have brought a lot to the world of software development. While not everybody is (or ever should be) using docker as their deployment method, it's usefulness far exceeds being just a platform to run services on in production.
Saved on: 2018-01-20

How to gradually upgrade toward PHPUnit 6 with namespaced classes

In the latest months I wrote multiple times, in different projects, code migrating PHPUnit toward major version 6. This upgrade is harder than the previous one, since in this version it was introduced a big breaking change: all classes got (finally!) namespaced.
Saved on: 2017-09-12

Ghost Inspector – Automated Browser Testing

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies. Do not sell my personal information.
Saved on: 2017-04-13

PHP unit testing

Do you guys know any good books/resources to start learning unit testing (focused on PHP) that are up to date? Thanks in advance.
Saved on: 2017-03-31
❤️
</>
2024