DEV Community

Cover image for WTF is shift-left testing? 🗟
Gabor Szabo
Gabor Szabo

Posted on • Originally published at szabgab.com

2 1

WTF is shift-left testing? 🗟

It took me a while, but finally I understand it. If you imagine the process of software development to be moving from left to right then "shift-left" means moving something earlier in the development process. ⬅️

All this time I was thinking it has something to do with left-brained 🧠 people vs. right-brained 🤯 people, but no, it is just doing things earlier.

The theory, or rather the measured numbers behind the idea is that the cost of fixing bugs increases as time passes. We might even say that the cost increases exponentially.

That is, if I make a mistake. Fixing it a few minutes after that will take me some time, but if we find our about that bug 5 days later, it will take me a lot more time to fix the bug.
If we find out about the bug a month later when a customer is already using the software it might cost 30-50 times more time to fix the code. 📈

That's only the time wasted on fixing the bug. We have not even mentioned the time to get it into the hands of the customers and the cost of diminished reputation or even loss of income due to that bug,

The solution is simple. At least in theory. Create a shorter feedback loop. Write fast(!) automated tests that can be run after every change.
This will help the engineers find bugs earlier. That, in turn, will cost the developers and the whole company a lot less than getting the same reports days, weeks, or months later. ➿

Have you experienced projects with good tests?

What stops you from writing automated tests?

Can I help you with this?

Source of the image The exponential cost of fixing bugs.

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

Top comments (1)

Collapse
 
tjasper profile image
Oluwaloseyi Oluwatofunmi Emmanuel

Interesting!

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay