Effective Software Testing
Subscribe
Sign in
Home
Archive
About
New
Top
Discussion
Tests breaking because of mocks, what to do?
I had to suddenly change the internals of a class a couple weeks ago. This class was responsible for sending messages to our developers through our…
Maurício Aniche
Mar 23
3
Share this post
Tests breaking because of mocks, what to do?
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
February 2023
Unit or integration tests?
It doesn't matter!
Maurício Aniche
Feb 24
14
3
Share this post
Unit or integration tests?
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
November 2022
How we can make it easy?
An example with code!
Maurício Aniche
Nov 28, 2022
5
Share this post
How we can make it easy?
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
It has to be easy!
One of the biggest truths when it comes to developer testing is that it has to be easy! If it's not easy, we'll simply don't do it. We'll find lots of…
Maurício Aniche
Nov 14, 2022
11
4
Share this post
It has to be easy!
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
Divide to conquer
In enterprise systems, especially those that are a little distributed, a common argument against unit testing is that "in real life, most bugs occur…
Maurício Aniche
Nov 7, 2022
4
3
Share this post
Divide to conquer
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
Internals vs peers, a nice guide on when to mock
We are all past the idea that a unit testing has to only test a single class, isolating it from all its dependencies. We can, but it doesn't mean we…
Maurício Aniche
Nov 1, 2022
4
1
Share this post
Internals vs peers, a nice guide on when to mock
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
October 2022
Why are smaller classes better than large classes?
In the amazing The Philosophy of Software Design, John Ousterhout argues that having large classes that implement the full expected behaviour can be…
Maurício Aniche
Oct 24, 2022
3
1
Share this post
Why are smaller classes better than large classes?
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
August 2022
"I would have found this bug with E2E tests" is a fallacy!
No, you would not! In fact, I would argue that focusing solely on E2E tests can actually have the opposite effect, meaning, you will find less bugs.
Maurício Aniche
Aug 11, 2022
8
1
Share this post
"I would have found this bug with E2E tests" is a fallacy!
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
July 2022
Intermediate data structures and observability
Being able to observe the behavior of the program is key in testing. And we should make sure it is always easy to do it. In a few cases, though, the…
Maurício Aniche
Jul 26, 2022
2
2
Share this post
Intermediate data structures and observability
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
Use case vs unit testing
Deciding which level to write your tests is always a hard decision. On one hand, you may go for fine-grained unit testing, where you exercise one class…
Maurício Aniche
Jul 21, 2022
Share this post
Use case vs unit testing
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
May 2022
It's not about following a recipe!
One of my favorite testing techniques is specification-based testing. I learned it more formally a bit later in my career, and since then, I feel my…
Maurício Aniche
May 18, 2022
3
Share this post
It's not about following a recipe!
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
April 2022
Mocking frameworks vs mocks by hand
There was an interesting discussion on Twitter a few weeks ago on whether we should use mocking frameworks or not. I asked to the author of the original…
Maurício Aniche
Apr 10, 2022
2
Share this post
Mocking frameworks vs mocks by hand
effectivesoftwaretesting.substack.com
Copy link
Twitter
Facebook
Email
This site requires JavaScript to run correctly. Please
turn on JavaScript
or unblock scripts