Day 061 / Testing / Software Quality

Boundary Value Generator

View source ↗Scroll to explore ↓
Boundary Value Generator project cover
/ Overview

A dependency-free Python CLI that generates deterministic just-below, at, and just-above cases for declared numeric and string boundaries.

NameBoundary Value Generator

ClientIndependent daily build

IndustriesSoftware quality tooling

DateDay 061 · October 30, 2026

/ Challenge

Validation defects often hide at the exact edge of an allowed range. Writing boundary cases by hand is repetitive, and inconsistent step sizes or expected outcomes make a small test plan harder to review.

/ Provided services

Clear thinking.
Practical delivery.

01

Boundary partitions

Each configured limit produces focused neighboring values so reviewers can see what should pass and fail.

02

Stable test data

Fields and boundaries retain their source order, while exact Decimal stepping avoids floating-point drift during generation.

03

Guarded specifications

Duplicate keys, duplicate names, unknown options, incompatible constraints and oversized inputs stop with a clear validation error.

Boundary Value Generator feature visual
/ Solution

Boundary Value Generator validates one bounded local JSON specification and creates stable cases immediately below, exactly at and immediately above numeric and string-length limits. It supports integer, number and string fields, positive numeric steps, JSON file output and explicit expected-valid flags. It rejects duplicate keys and field names, unknown fields, inverted ranges, non-finite values and incompatible constraints. It creates candidate data only; it does not run an application, infer business rules, generate personal data or prove the policy is correct.

/ Impact

Just-below, at and just-above cases

Integer, decimal and string boundaries

Deterministic JSON reports

Expected-valid classifications

Bounded defensive input

/ Tech stack

Python standard library

Argparse, dataclasses, Decimal, JSON and unittest keep the command portable and dependency-free.

Declarative test design

A small JSON contract separates boundary policy from the generated cases and their expected outcomes.

Twelve tests

Tests cover numeric and string edges, custom steps, stable ordering, duplicate data, invalid ranges, minimized reports and CLI output.

Next project

n8n Workflow Documenter

View case study ↗