dartproptest 0.1.1 copy "dartproptest: ^0.1.1" to clipboard
dartproptest: ^0.1.1 copied to clipboard

A property-based testing framework for Dart, inspired by QuickCheck and Hypothesis. Ported from jsproptest.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased] #

Added #

  • Initial release of dartproptest
  • Property-based testing framework inspired by QuickCheck and Hypothesis
  • Comprehensive generator library for common data types
  • Powerful combinators for complex data structures
  • Automatic shrinking for easier debugging
  • Stateful testing support
  • Flutter compatibility across all platforms
  • Multiple API variants for different use cases:
    • forAll - Main function with reflection support
    • forAllSimple - Flutter-compatible version
    • forAll1, forAll2, etc. - Numbered variants for type safety
    • forAllLegacy - Traditional approach

Features #

  • Generators: Built-in generators for integers, strings, arrays, objects, booleans, floating-point numbers, sets, dictionaries, and tuples
  • Combinators: just, lazy, elementOf, oneOf, construct, chainTuple
  • Shrinking: Automatic shrinking algorithms for all data types
  • Stateful Testing: Support for testing stateful systems with action sequences
  • Platform Support: Works on Dart VM, Flutter web, mobile, and desktop
  • Documentation: Comprehensive documentation with examples and guides

Technical Details #

  • Zero external dependencies for core functionality
  • BSD 3-Clause License
  • Dart SDK requirement: >=3.0.0 <4.0.0
  • Comprehensive test suite with example tests
  • Flutter compatibility documentation

0.1.0 - 2025-10-12 #

0.1.1 - 2025-10-13 #

Added #

  • Initial release
  • Core property-based testing functionality
  • All generators and combinators
  • Shrinking algorithms
  • Stateful testing support
  • Flutter compatibility
  • Complete documentation
0
likes
140
points
--
downloads

Publisher

unverified uploader

Weekly Downloads

A property-based testing framework for Dart, inspired by QuickCheck and Hypothesis. Ported from jsproptest.

Repository (GitHub)
View/report issues
Contributing

Topics

#testing #property-based-testing #quickcheck #bdd #tdd

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

More

Packages that depend on dartproptest