Urgent.News

What's breaking now, across thousands of outlets.

Tech

I Wrote a Tool to Find Blind Spots. It Had One.

I spend a lot of time writing quality gates to enforce invariants in my software. For weeks, my test runner stayed green. Every guard was in place, every check passed, and every test suite reported clean execution. Then I asked an uncomfortable question: are these gates actually measuring anything, or are they just executing without complaining? To find out, I wrote a script to sabotage my own…

A software engineer developed a tool to identify blind spots in quality gates that prevented invalid code from entering the codebase. Initially, all tests passed, but the engineer questioned whether these gates were truly effective. To investigate, the engineer wrote a script called sabotaj.py that disabled one guard at a time and re-ran the mutation test suite.

The script discovered that 40 out of 61 protection lines were unmeasured by any test, representing a 66% blind spot rate. Despite having a seemingly green test suite, the engineer found that two-thirds of the assertions could be erased without triggering any alerts. In the world of software quality gates, three types of failures can occur: the Dead Gate, the Environmentally Broken Gate, and the Blind Gate.

The engineer's tool revealed the Blind Gate phenomenon, where the gate appears to work correctly but actually measures nothing. To ensure comprehensive gate effectiveness, the engineer recommends a two-step approach: mutating the gate itself and mutating the engine the gate protects. This helps uncover blind spots that may be missed by traditional testing methods.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Thursday 27 August →