fast-check

Property based testing framework for JavaScript (like QuickCheck) written in TypeScript

MIT License

Downloads
6.1M
Stars
4.1K
Committers
68

Bot releases are hidden (Show)

fast-check - VerbosityLevel enum is accessible through fc.VerbosityLevel

Published by dubzzz over 5 years ago

Fixes

  • (PR#278) Bug: VerbosityLevel values not accessible
fast-check - BigInt support and new verbosity level

Published by dubzzz over 5 years ago

Features

  • (PR#274) Add support for asynchronous check method in AsyncCommand
  • (PR#271) More verbose option
  • (PR#268) Add bigInt, bigIntN, bigUint, bigUintN arbitraries
  • (PR#263) Default seed based on random in addition of timestamp

Fixes

  • (PR#272) Bug: Commands partially cloned during the shrinking process
  • (PR#264) Bug: Non-integer seeds not using the full range of integers
  • (PR#269) Clean: Migrate tests to Jest
  • (PR#276) Clean: Unecessary try catch removed for modelRun
fast-check - Fix regression introduced in the shrinking of cloneable

Published by dubzzz over 5 years ago

Fixes

  • (PR#262) Bug: Too many shrinks for commands
  • (PR#261) Bug: Unability to shrink mapped commands
  • (PR#259) Bug: Move cloning responsability at a single place in the code
  • (PR#258) Bug: Shrinker of commands failed to shrink twice (in depth)
fast-check - Support asynchronous model setup

Published by dubzzz over 5 years ago

Fixes

  • (PR#249) Bug: asyncModelRun must accept asynchonous setup function
fast-check - Native handling of stateful generated values

Published by dubzzz over 5 years ago

Features

  • (PR#245) seed can be any possible double value
  • (PR#229) Add context arbitrary
  • (PR#237) Add infiniteStream arbitrary
  • (PR#229) Add cloneable capabilities for stateful generated values

Fixes

  • (PR#241) Doc: Add an example for asyncProperty
  • (PR#238) Better logs for fc.func, fc.compareFunc and fc.compareBooleanFunc
  • (PR#235) Better handling of fc.commands
fast-check - Fix import of loremIpsum library

Published by dubzzz over 5 years ago

Fixes

  • (PR#226) Fix import of loremIpsum library
fast-check - Switch to another PRNG for better performances, better fc.commands

Published by dubzzz about 6 years ago

Features

  • (PR#221) Better shrink capabilities for fc.commands

Fixes

  • (PR#220) Switch to another PRNG as default random - more performances
  • (PR#217) Better typings for fc.record
fast-check - Fix infinite loop when shrinking array having a minimal length defined

Published by dubzzz about 6 years ago

Fixes

  • (d6468dc) Fix: shrink an array with minimal length lead to infinite loop
fast-check - Performance improvements

Published by dubzzz about 6 years ago

Fixes

  • (PR#207) Performance improvements done on pure-rand side

Features

  • (PR#201) Add compareBooleanFunc, compareFunc and func arbitraries
  • (PR#200) Parameter randomType to choose the random generator
  • (PR#202) Property hooks for beforeEach and afterEach
  • (PR#196) Publish both cjs and esm versions of the package

Fixes

  • (PR#175) Characters must be biased by default
  • (PR#184) Update to latest lorem-ipsum

Features

  • (PR#177) Add subarray and shuffledSubarray arbitraries
  • (PR#157) Model based testing and commands
  • (PR#158) Characters shrink towards printable ascii

Fixes

  • (PR#170) Fix: fullUnicode and fullUnicodeString were failing on old releases of node
  • (PR#178) Doc: Update typedoc
  • (PR#161) Doc: Suggest bundle.run instead of jsdelivr
fast-check - Filter invalid values directly in predicates using `fc.pre`

Published by dubzzz about 6 years ago

Features

  • (PR#140) Make seed and path copy pasteable
  • (PR#138) Remove core-js, no more global namespace pollution
  • (PR#118) Enable preconditions in predicate
fast-check - Reduce package footprint and less restrictive API for `oneof`/`frequency`

Published by dubzzz about 6 years ago

Fixes

  • (PR#135) Do not force explicitly one parameter in oneof/frequency
  • (PR#134) Doc: Typos in README
  • (PR#132) Add missing exports for jsonObject and unicodeJsonObject
  • (PR#131) Reduce package size
  • (PR#130) Doc: Examples for generation of recursive structures
fast-check - Less restrictive API for `constantFrom`

Published by dubzzz about 6 years ago

Fixes

  • (PR#123) Do not force explicitly one parameter in constantFrom
fast-check - Readme update

Published by dubzzz about 6 years ago

Fixes

  • (b80b4f92) Doc: Model based testing example
  • (cc4f4f4f) Doc: Getting started tutorial
fast-check - Built-in chaining of arbitraries

Published by dubzzz about 6 years ago

Features

  • (PR#103) Use the output of arbitraries to produce other ones with .chain(...)
  • (PR#114) Add shrink for fc.lorem
  • (PR#116) Throw exception in case of bad path when trying to replay a failure

Fixes:

  • (PR#117) Doc: Fully revamp the documentation
  • (a5dcd71c) Doc: New logo
fast-check - Better performance for biased arbitraries (=default)

Published by dubzzz about 6 years ago

Fixes

  • (PR#107) Fix: Performance issue when using biased arbitraries
  • (743d7619) Fix: Bump to the latest version of pure-rand
fast-check - Export missing `fc.stringOf`

Published by dubzzz about 6 years ago

Fixes

  • (63915033) Fix: Export missing fc.stringOf
fast-check - Readme update

Published by dubzzz about 6 years ago

Fixes

  • (68893e99) Doc: Why should I migrate section? in README.md
  • (d779aa9e) Doc: Verbose mode explained in README.md
  • (eacc7f0e) Doc: Bug detected using property based testing and fast-check

Fixes

  • (b45b90eb) Ability to use min and max boundaries outside of 32 bits integers: fc.integer(Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER)