SShortSingh.
Back to feed

Architecture Tests Can Pass While Leaving Real Bugs Undetected

0
·2 views

A software engineer reviewing a .NET codebase discovered that an architecture test designed to catch unsafe synchronous disposal of dependency-injection scopes was passing despite missing a background job with the same vulnerability. The test's detector logic was sound and included self-tests, but its file discovery was scoped to only part of the codebase, leaving a legitimate source tree unscanned. The incident highlights that architecture guards carry three distinct contracts: the detector's ability to recognize a violation, the discovery process that finds all relevant files, and the boundary definition that determines where a behavior is legally permitted. A passing test count can appear healthy while entire ownership areas remain invisible if scan roots are chosen by convenience rather than by actual ownership rules. The author now recommends combining minimum-count assertions with known sentinel files from each expected source root and periodically auditing the full repository against the guarded file set.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

How to Truly Replace Google Forms With a Native HTML Form on Your Website

Developers seeking to remove Google Forms from their sites have three common options, but most still keep Google in the loop rather than eliminating it entirely. Embedding a Google Form as an iframe prevents custom styling, resizes poorly, and presents Google branding on your own site. A lesser-known workaround lets you post an HTML form directly to Google's response endpoint, keeping data in a spreadsheet, but the approach is fragile, offers no CORS support, and breaks silently if the original form is altered or deleted. The only element Google Forms truly provides that a static site cannot is a POST endpoint, which third-party services like Formspree, Web3Forms, Basin, or Formpaste can replace while giving developers full control over markup, styling, and validation. Switching to such a service means owning spam management and potentially paying for usage, but it removes Google's branding and restores complete ownership of the form experience.

0
ProgrammingDEV Community ·

Developer Gains GIS and Satellite Data Skills at KijaniSpace Hackathon in Kisumu

A backend software developer participated in the KijaniSpace Hackathon held at Zone01 Kisumu, where teams were challenged to build solutions using Geographic Information Systems, the Copernicus API, and IoT devices. The Copernicus programme, run by the European Union, offers free satellite imagery and environmental data through its Sentinel missions, covering areas such as vegetation health, air quality, and disaster monitoring. IoT sensors measuring soil moisture, temperature, and water levels were also explored, with some teams combining live sensor data with satellite imagery for richer insights. The developer, whose background is primarily in Go-based backend systems, said the experience broadened their understanding of how software intersects with agriculture, climate science, and environmental conservation. They left the event with a new appreciation for geospatial technologies and plans to integrate such tools into future projects.

0
ProgrammingDEV Community ·

How to Set Up the STON.fi SDK for TON Swap and Liquidity Apps

The STON.fi SDK is a TypeScript and JavaScript library that wraps STON.fi smart contracts, including Router, Pool, LP Account, Vault, and pTON contracts, to simplify DeFi integrations on the TON blockchain. A complete integration typically requires four components working together: the STON.fi API for asset discovery and trade simulation, the SDK for generating contract instances and transaction parameters, a TON RPC client for reading blockchain state, and TON Connect for wallet approval. Developers should install @ston-fi/sdk alongside @ston-fi/api and @ton/ton, adding a TON Connect package when user-facing wallet signing is needed. The SDK's current v2 release introduces support for single-sided liquidity, Vault operations, and improved gas handling, while still retaining v1 classes for backward compatibility. Keeping each component's responsibilities separate — contract interaction, API data, RPC access, and wallet signing — is recommended to make integrations easier to test and maintain.

0
ProgrammingDEV Community ·

How Consultants Diagnose and Fix a Failing Odoo ERP Implementation

Odoo ERP implementations frequently fail not due to software flaws but because business misunderstandings get hardcoded into dozens of custom modules, making every fix a source of new problems. Panorama Consulting's 2026 ERP Report highlights cost overruns and schedule slippage as persistent issues across ERP projects, with rework — not licensing — driving most of the excess spend. Experienced consultants recommend starting a rescue by querying the database directly, as metrics like stalled CRM record growth or dead scheduled tasks reveal the true state of adoption faster than stakeholder interviews. The underlying problems typically fall into four categories: process mismatch, bad customization, dirty data, and lack of ownership — each requiring a distinct remediation approach. Of these, the absence of internal ownership and data stewardship is considered the hardest to fix and the most likely reason a rescued deployment fails again within a year.