Open in app

Sign In

Write

Sign In

Marcin Gryszko
Marcin Gryszko

39 Followers

Home

About

Published in clarityai-engineering

·Feb 12, 2022

Deciphering test feedback

You may find many statements on the Internet: “tests give you valuable design feedback”, “listen to the test feedback”, and so on. But you seldom find a “test feedback manual” telling you what is actually test feedback and how to react to it. …

Testing

6 min read

Deciphering test feedback
Deciphering test feedback
Testing

6 min read


Published in clarityai-engineering

·Sep 24, 2021

Sociable or solitary unit tests — choose your tradeoffs

What to choose as a unit for a test? Should it focus on a single module (whatever it is in your programming language) and its narrow responsibilities, or, maybe on a group of collaborating modules? Should my test be sociable and include System Under Test (SUT) dependencies, the dependencies of…

Testing

5 min read

Sociable or solitary unit tests — choose your tradeoffs
Sociable or solitary unit tests — choose your tradeoffs
Testing

5 min read


Aug 10, 2021

Clean Tests

All my articles about effective and efficient testing listed in reverse chronological order: Deciphering test feedback Sociable or solitary unit tests — choose your tradeoffs Don’t break the contract chain Effective test doubles, part 1 and part 2 What is the System Under Test? A tale from Gallic Wars Good vs bad test helpers Painless assertions Minimal Fixture everywhere

Testing

1 min read

Clean Tests
Clean Tests
Testing

1 min read


Mar 26, 2021

Don’t break the contract chain

In my previous article about the effective usage of test doubles, I described how mocks and stubs can be introduced to define contracts between internal components of a closed system (e.g. a microservice). …

Cdc

10 min read

Don’t break the contract chain
Don’t break the contract chain
Cdc

10 min read


Feb 12, 2021

Modularize your code with folding and monoids

In this article, I’ll show you how to apply functional programming techniques to achieve greater abstraction and flexibility in your code. We’ll refactor together a rigid code towards a more generic solution by introducing folding (or reduce), higher-order functions, and combining values in an abstract way (with a fancy name…

Refactoring

8 min read

Modularize your code with folding and monoids
Modularize your code with folding and monoids
Refactoring

8 min read


Nov 28, 2020

Effective test doubles, part 2

This is the second (and the last) part of my longer article about applying effectively test doubles. In part 1 I presented tips on tactical mock/stub usage. I assumed that you were already using mock objects, I gave hints about how to squeeze the most out of them and avoid…

Testing

13 min read

Effective test doubles, part 2
Effective test doubles, part 2
Testing

13 min read


Nov 11, 2020

Effective test doubles, part 1

Twenty years ago, Endo-Testing: Unit Testing with Mock Objects, the first paper on mock objects was published. Its authors described the usage of real object replacements to improve both the production and the test code. They named Mock Objects them after Mock Turtle, a creature from Alice in Wonderland that…

Testing

8 min read

Effective test doubles, part 1
Effective test doubles, part 1
Testing

8 min read


Oct 31, 2020

What is the System Under Test? A tale from Gallic Wars

September, 52 BC, Alesia, Gaul Julius Caesar was waging wars in Gaul for six long years. He thought he had conquered Gallia for the glory of Rome, but in 52 BC a young, ambitious, and charismatic chieftain, Vercingetorix, managed to unify the Gallic tribes and revolted against Romans. Caesar pursued Vercingetorix and his fellow soldiers…

Testing

7 min read

What is the System Under Test? A tale from Gallic Wars
What is the System Under Test? A tale from Gallic Wars
Testing

7 min read


Oct 20, 2020

Good vs bad test helpers

This time I’ll talk about the use and abuse of test helper methods. But first, let’s start (again) with a short description of why we are writing tests and what is a test for? A test sends stimuli to the test subject and examines the response. In a more plain…

Testing

9 min read

Good vs bad test helpers
Good vs bad test helpers
Testing

9 min read


Oct 13, 2020

Painless assertions

A good test provides evidence of how the System Under Test (SUT) transforms inputs into outputs. We set up a test fixture, execute the SUT, and finally, we verify the results (structure known as Setup-Execute-Verify or Arrange-Act-Assert). …

Testing

6 min read

Painless assertions
Painless assertions
Testing

6 min read

Marcin Gryszko

Marcin Gryszko

39 Followers

Enduring software engineer and long-distance cyclist

Following
  • Javier Lopez

    Javier Lopez

  • Notability Blog

    Notability Blog

  • Kevlin Henney

    Kevlin Henney

  • Clarity AI Engineering Team

    Clarity AI Engineering Team

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech