Skip to content

Add package proptest - #3624

Merged
narimiran merged 2 commits into
nim-lang:masterfrom
kaio-souza:add-proptest
Nov 21, 2026
Merged

narimiran merged 2 commits into
nim-lang:masterfrom
kaio-souza:add-proptest

Conversation

@kaio-souza

Copy link
Copy Markdown
Contributor

Adds proptest, a property-based testing library for Nim.

  • Generators inferred from types, including user objects, case objects, distinct, ref and recursive types, with no generator code
  • Integrated shrinking to minimal counterexamples; stateful (model-based) testing that prints the shortest failing sequence as Nim code
  • Reproducible failures (PROPTEST_SEED), a failure database replayed first on the next run, JSON report for CI
  • Works with std/unittest and unittest2; no dependencies outside the standard library
  • MIT, version 1.0.0 (tagged), requires Nim >= 2.2.4; CI on Linux, macOS and Windows

🤖 Generated with Claude Code

@narimiran
narimiran merged commit fff3fcc into nim-lang:master Nov 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants