SShortSingh.
Back to feed

When passing tests still let a software bug slip through undetected

0
·7 views

A developer maintaining qbofile, a browser-based accounting file converter, discovered that green unit tests can mask incorrect logic when both sides of an assertion are generated by the same flawed code. The bug involved converting transaction split amounts from IIF format, used by QuickBooks Desktop, to QIF format, read by Quicken and GnuCash, where a sign convention error would cause both sides of the test equation to flip simultaneously, keeping tests green. Mutation testing confirmed the assertions were wired to the code but could not determine whether the underlying logic was correct. The developer resolved the uncertainty by building a purpose-designed QIF file and importing it into GnuCash, verifying the split totals were accurate — turning a confident assumption into a confirmed measurement. Separately, a real defect was uncovered during the review process, unrelated to signs and involving how IIF payee and memo fields map to QIF's distinct P and M fields.

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 ·

Google Cloud-Based AI Engine Scores Enterprise Data Quality in Real Time

A new AI-powered solution called the Data Trust Score Engine has been designed to help enterprises measure and improve the reliability of their data using Google Cloud services including BigQuery, Data Catalog, and Vertex AI. The platform assigns each dataset a dynamic Trust Score between 0 and 100 by evaluating dimensions such as completeness, consistency, uniqueness, freshness, and AI-detected anomalies. Unlike traditional rule-based data quality frameworks, the engine combines metadata intelligence, large-scale analytics, and machine learning to detect complex and evolving data issues. It also functions as a governance platform, offering interactive dashboards, automated alerts, and REST APIs so that pipelines and AI systems can verify data trustworthiness before use. The solution aims to prevent poor business decisions, compliance risks, and unreliable AI outcomes caused by duplicate, missing, or corrupted data.

0
ProgrammingDEV Community ·

Circumcision: Ancient Origins, Religious Meaning, and Modern Medical Debate

Circumcision is among humanity's oldest documented surgical procedures, with archaeological evidence from ancient Egypt dating back to around 2300 BCE, predating Judaism by centuries. Historians believe the practice may have originated for reasons related to hygiene observation, rites of passage, social identity, or religious concepts of purity — possibly several reasons at once. Judaism gave the practice a distinct theological significance, framing it in Genesis 17 as a physical sign of the covenant between God and Abraham, formalized through the ceremony known as brit milah. Scholars suggest the Israelites may have adopted an existing regional practice and reinterpreted it with new religious meaning rather than originating it independently. In the modern era, circumcision continues to be debated on medical grounds, with research examining potential health implications alongside its enduring cultural and religious significance.

0
ProgrammingDEV Community ·

AI Agents Replace Rigid RPA Systems, Promising 40% ROI Gains for Enterprises

Enterprises have long relied on Robotic Process Automation to handle repetitive tasks, but its rigidity, high maintenance costs, and inability to manage unstructured data are increasingly limiting its value. A new framework called Adaptive AI Agent Orchestration proposes replacing static RPA bots with specialized AI agents that can collaborate, learn, and make autonomous decisions within complex workflows. The architecture combines an orchestration layer, large language model-powered agents, and retrieval-augmented generation to give systems real-time access to enterprise data from sources like CRMs and ERPs. Proponents argue this shift addresses key RPA shortcomings such as technical debt, poor agility, and human resource drain caused by constant bot maintenance. The approach is positioned as a strategic priority for C-suite leaders seeking measurable operational returns in an increasingly dynamic business environment.

0
ProgrammingDEV Community ·

OpenAI Codex CLI Can Run Claude, Kimi and Other Models via One Config Block

OpenAI's Codex CLI, typically limited to OpenAI models, supports custom providers through a built-in configuration option that lets users route requests to alternative AI models. By editing a single config file at ~/.codex/config.toml and specifying a gateway that implements the Responses API, developers can run models such as Claude Opus or Kimi K3 directly inside the Codex CLI. The author demonstrates this using Opper, an EU-hosted API gateway offering access to over 700 models under one API key, which they disclose they work for. An optional Opper CLI tool can automate the entire setup, detecting and installing Codex if needed and writing the provider config block without overwriting existing settings. The approach is particularly relevant for developers who need specific models, cost-efficient long sessions, or data residency in regions like the EU for compliance reasons.