SShortSingh.
Back to feed

How Missing Test Declarations Caused Ten Unrelated Tests to Fail Correctly

0
·1 views

A software developer added three new checks to a build system without completing the required declarations for each, triggering ten test failures across unrelated parts of the suite. The build system enforced a structural invariant requiring every check to have a defined oracle and a list of fault conditions, and the missing fields broke that property system-wide. A separate block of work was outright refused because it referenced print names not present in the system's closed vocabulary, preventing silent data divergence. The developer noted that an incomplete check with no declared failure mode would otherwise have passed silently, inflating 'all checks passing' counts without actually being verifiable. The incident illustrated how well-designed systems surface rule violations at the point where the rule is defined, not where it was broken, making gaps impossible to ship undetected.

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 One Developer Ran Proxmox and Docker on the Same Windows Machine

A developer discovered that Windows Hypervisor Platform and nested Proxmox virtualisation are mutually exclusive, forcing Docker Desktop to fail whenever Proxmox was active. After AI tools only suggested choosing one option, the developer devised their own fix: offloading the Docker daemon entirely to a dedicated Ubuntu VM running inside VMware. The Windows Docker CLI was then configured to communicate with that remote VM via SSH context, bypassing the hypervisor conflict altogether. The setup uses Docker Engine 29.8.0 on an Ubuntu 24.04 VM with 4 vCPUs and 8 GB RAM, while Docker Desktop on Windows is retained solely for its CLI. A noted side effect is that disabling the Windows hypervisor also silently breaks WSL2, despite status commands appearing normal.

0
ProgrammingDEV Community ·

Droid ASC Android Reverse Engineering Tool Claims 269x Speed Gain Over jadx

Droid ASC is an open-source Android reverse engineering tool introduced at Black Hat Europe 2026 Arsenal, designed to address the slow decompilation and high memory demands of traditional tools like jadx. The tool uses a zero-index architecture and on-demand Deflate stream decompression to query APKs as live databases rather than exhaustively indexing them. Benchmark tests across four commercial APKs showed search speeds up to 269 times faster and memory consumption up to 125 times lower than jadx, with no disk caching required. In one test, jadx crashed with an out-of-memory error at 49% completion on a 352 MB APK, while Droid ASC returned results in under two seconds. The tool is aimed at penetration testers, red teams, and bug bounty researchers, and is recommended strictly for use in authorised testing environments.

0
ProgrammingDEV Community ·

How a Late-Night Dev Session Built a Cross-Project Log System That Now Spans 426 Files

A developer working with Claude Code created a session-tracking system during a brief early-morning session to solve the problem of continuity across multiple AI conversations. The system introduced a structured naming format, an index file, and an auto-closing script that logs session metadata including start time, status, and a UUID for resuming work. A third session the same day expanded the design, giving each session its own file with fixed sections for goals, decisions, and next steps, plus a script to list and query sessions at the start of each conversation. The system has since scaled to 426 session files across ten projects, with 165 created autonomously by agents running terminal tasks without the developer present. Core elements like the naming format and fixed section structure remain unchanged from that original night.

0
ProgrammingHacker News ·

Financial Times Sports a Clever Custom 404 Error Page

The Financial Times has drawn minor online attention for its custom 404 'Page Not Found' error page hosted at ft.com. The page was shared on Hacker News, where it received a small number of upvotes. The submission attracted no comments from the community. Custom error pages are often used by media and tech companies to maintain brand identity and user experience even when content is missing.

How Missing Test Declarations Caused Ten Unrelated Tests to Fail Correctly · ShortSingh