WeSearch

My test suite was green. My software was lying to me.

·7 min read · 0 reactions · 0 comments · 51 views
#software#testing#security#development
My test suite was green. My software was lying to me.
TL;DR · WeSearch summary

The author recounts discovering multiple bugs in their security platform, ZDS Core, despite a green test suite. The issues stemmed from the software reporting success while failing to store any data. This experience highlights the importance of testing against real-world scenarios rather than relying solely on unit tests.

Key facts
About this source

DEV.to (Top) files mainly under programming. We currently carry 4,877 of its stories.

Original article
DEV.to (Top)
Read full at DEV.to (Top) →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 3825959) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Saint Zero Day Posted on May 30 My test suite was green. My software was lying to me. #go #security #testing #devops My CI was green. 1,885 tests, 66 packages, zero failures. go vet clean. The build was a single self-contained binary. By every signal a Go project gives you, it worked. Then I pointed it at something real, and watched it lie to my face. This is the story of six bugs I found in my own security platform — ZDS Core — by refusing to trust a green checkmark.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV.to (Top)