Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QuickCheck for Javascript

Is there a version of quickcheck that works for Javascript and that is well maintained? I have found several such as check.js and claire, but none of them seem to support shrinking of failing test cases, which has always struck me as the most useful part of the whole problem.

like image 290
Zachary K Avatar asked May 12 '14 11:05

Zachary K


People also ask

What is JUnit QuickCheck?

junit-quickcheck is a library that supports writing and running property-based tests in JUnit, inspired by QuickCheck for Haskell.

What is Jqwik?

jqwik is an alternative test engine for the JUnit 5 platform. That means that you can use it either stand-alone or combine it with any other JUnit 5 engine, e.g. Jupiter (the standard engine) or Vintage (aka JUnit 4).

What is property-based testing?

What is property-based testing? Property-based tests are designed to test the aspects of a property that should always be true. They allow for a range of inputs to be programmed and tested within a single test, rather than having to write a different test for every value that you want to test.


1 Answers

I'm creator of jsverify. I'll try constantly to make it better, bug reports and feature requests are welcomed.

There are also a list of other javascript generative testing libraries in a readme. So far I haven't found any other good alternative to the jsverify.

like image 168
phadej Avatar answered Oct 05 '22 10:10

phadej