Image for post
Image for post
source https://martinfowler.com/bliki/TestPyramid.html

TL;DR; The shape and levels of the test pyramid highly depends on your application (and it mustn’t be a pyramid!) but there are known anti-patterns.

In this guide I want to address the types of testing of web apps especially in the face of the increase of the popularity of Single Page Applications and microservices, the diversified terminology and how we can refer to the well-known test pyramid which will be also covered here. …

Image for post
Image for post
https://pixabay.com/illustrations/software-testing-service-762486/

After reading this article I hope you will get familiar with ambiguous testing terminology. I tried to make a precise research about it but if you see anything that can be improved or where I got wrong, please write a comment about it.

Functional tests, unit tests, acceptance tests… what?

There is a lot of misunderstanding in the terminology. …

Image for post
Image for post

This post requires basic knowledge of React Hooks and of terms like Higher Order Components and Render Props. It shows few examples presenting advantages of React Hooks.

React Hooks advantages

  • hooks are easier to work with and to test (as separated functions from React components*) and make the code look cleaner, easier to read a related logic can be tightly coupled in a custom hook. Check below visualization of differences between standard stateful component and a one using hooks:
  • * by separated functions I mean writing a logic as your own hooks that are just functions that return values or functions used for accessing and manipulating state with use of standard React hooks. We still have to test them through a mock React component but I think it’s more readable and easier than testing…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store