Claire is a library for property-based testing for JavaScript applications. Just like Haskell’s QuickCheck or Scala’s ScalaCheck, Claire works by generating random values within a given data space and verifying if the properties declared for those values hold.
|
|
Claire runs on all ECMAScript 5-compliant platforms without problems. It’s been successfully tested in the following platforms:
For legacy, ES3 platforms, like IE’s JScript, you’ll have to provide support for the following methods:
- Object.keys
- Object.create
- Object.getPrototypeOf
- Object.freeze (as an identity function)
- Array.prototype.indexOf
- Array.prototype.forEach
- Array.prototype.filter
- Array.prototype.map
- Array.prototype.reduce
- Array.prototype.some
- Array.prototype.every
- String.prototype.trim
The nice es5-shim library should take care of handling all of those for you.
Claire uses the Github tracker for tracking bugs and new features.
MIT/X11.