Unit, Integration and Black Box testing framework powered by Guile Scheme, a dialect of Lisp
4open
27done
1rejected
32total
completion84%
backlog options
show done?show rejected?

Tip: Use Tab to navigate tickets and Enter/Space to expand or collapse cards.

Native Property-Based Testing (PBT)

veritas-362
statusWork in ProgresstypeTask
description

Now it's clear that data-driven (table) testing is easy using map and apply. The next logical evolutionary step for a Lisp-powered framework is Property-Based Testing inspired by QuickCheck.

The Improvement: Add a property macro alongside test and suite.

(property "Reverse of reverse is the original list"
          #:generators (list gen-list)
          #:thunk (lambda (xs)
                    (assert-equal #:expect xs #:got (reverse (reverse xs)))))

Veritas could automatically generate 100 random inputs, execute the assertion, and--if it fails--attempt to "shrink" the failing input to its smallest reproducible form.

Diff show pretty why an assert fails, diff between lists or strings for example

veritas-359
statusTo-dotypeTask
description

Add assert-match: pattern matching assertion super-power

veritas-368
statusTo-dotypeTask
description

assert-match: Integrate Guiles native (ice-9 match) so users can assert that data matches a specific structural shape.

Add more generators for useful patterns and add fake data (fake names, beers, cars, etc.)

veritas-369
statusTo-dotypeTask