EVERYTHING XIAOMI
Get listed

QuickTheories

QuickTheories is a free property-based testing library for Java 8, described as a Java version of QuickCheck.

Place
#10 of 28
Score
5.9
QuickTheories's website

What QuickTheories is

QuickTheories is a free property-based testing library for Java 8, described as a Java version of QuickCheck. It tests properties by generating random valid inputs, while its generator DSL supports common Java types and can constrain, combine, or convert generators for custom types. When a property fails, the library looks for smaller or simpler inputs that still produce the failure, without requiring custom shrinking code for each type. It reports the seed for a failing property, and developers can set a fixed seed for repeatable runs. QuickTheories works with JUnit, TestNG, or another test framework; its checkAssert method can use assertion libraries such as AssertJ and Hamcrest. The forAll API supports theories using one to four generated values. System properties configure seeds, example counts, and shrink attempts, while named profiles let users reuse configurations. An experimental coverage feature can guide searches toward new code paths, but may reduce performance by about 10% and interfere with JaCoCo or other coverage systems. It is licensed under Apache-2.0 and was produced at NCR Edinburgh as part of its graduate training program.

Good

  • Generates random valid inputs for property checks
  • Shrinks failing cases automatically
  • Reports seeds for repeatable failures
  • Works with JUnit and TestNG

Watch out

  • Supports theories over one to four generated values
  • Coverage guidance is experimental
  • Coverage guidance may interfere with JaCoCo

Who it suits

QuickTheories suits Java developers who want to test general properties and invariants with generated inputs. It is relevant to developers using JUnit, TestNG, or another test framework.

Verdict

QuickTheories offers generated-input testing, shrinking, and repeatable failure seeds for Java 8 projects. Its coverage guidance is experimental and may affect performance or other coverage tools.

Plans and prices

From QuickTheories's own pricing page, checked 7 Oct 2026.

All about pricing
PlanPriceWhat it gives you
QuickTheoriesFreeOpen source Java library · Apache-2.0 license

The facts

Each one read from QuickTheories's own pages, with the date it was checked.

What it does

Assertions
The checkAssert method lets tests use assertion libraries such as AssertJ and Hamcrest.checked 7 Oct 2026
Audience
The README describes the library for Java developers who want to test general properties and invariants of their code.checked 7 Oct 2026
Configuration
The QT_SEED, QT_EXAMPLES, and QT_SHRINKS system properties configure the random seed, examples per theory, and shrink attempts.checked 7 Oct 2026
Coverage guidance
An experimental coverage feature can focus search on examples exercising new code paths; the README says it may reduce performance by about 10% and interfere with JaCoCo or other coverage systems.checked 7 Oct 2026
Coverage limitation
Coverage guidance attaches an agent to the JVM, can reduce performance by about 10%, and may interfere with JaCoCo or other coverage systems.checked 7 Oct 2026
Generators
Its generator DSL can create common Java types, constrain generated values, and combine or convert generators for custom types.checked 7 Oct 2026
How it tests
It checks properties by automatically generating random samples of valid inputs.checked 7 Oct 2026
Input generation
It automatically generates random samples of valid inputs to check whether properties hold.checked 7 Oct 2026
License
The repository identifies its license as Apache-2.0.checked 7 Oct 2026
Origin
The project was produced at NCR Edinburgh as part of its graduate training program.checked 7 Oct 2026
Profiles
Named profiles can reuse configurations across properties and can be selected with the QT_PROFILE system property.checked 7 Oct 2026
Purpose
QuickTheories is a property based testing library for Java 8, described as a Java version of QuickCheck.checked 7 Oct 2026
Repeatability
Tests can use a fixed seed for deterministic runs, and QuickTheories reports the seed when a property is falsified.checked 7 Oct 2026
Shrinking
It automatically tries to find smaller or simpler values that still falsify a property, without requiring custom shrinking code for each type.checked 7 Oct 2026
Test frameworks
QuickTheories can run with JUnit, TestNG, or another test framework.checked 7 Oct 2026
Usage limit
The forAll API supports theories over between one and four generated values.checked 7 Oct 2026

The company

Maker
The README says QuickTheories was produced at NCR Edinburgh as part of its graduate training program.checked 7 Oct 2026

Alternatives to QuickTheories

All alternatives
  1. 1fast-check logo

    fast-check

    Free planOpen sourceWebAPILinuxSelf-hosted
    7.1Free plan
  2. 2

    ScalaCheck

    Free planLinuxmacOSWindows
    6.6Free plan
  3. 3

    Gopter

    Free planLinuxSelf-hosted
    6.4Free plan
  4. 4

    JSVerify

    Free planWebSelf-hosted
    6.4Free plan
  5. 5

    Racket QuickCheck

    Free planLinuxmacOSWindows
    6.4Free plan
  6. 6

    FsCheck

    Free planLinuxmacOSWindows
    6.3Free plan