# \#property-testing

**URL:** https://forum.elixirforum.com/tag/property-testing/278.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [ExFuzz - Fuzz testing for Elixir is here](https://forum.elixirforum.com/t/exfuzz-fuzz-testing-for-elixir-is-here/77404)

<div class="topic-metadata">

**Author:** [@Snehil-Shah](https://forum.elixirforum.com/u/Snehil-Shah)\
**Replies:** 2\
**Last updated:** [November 17, 2026, 7:08am UTC](https://forum.elixirforum.com/t/exfuzz-fuzz-testing-for-elixir-is-here/77404 "2026-11-17T07:08:23Z")

</div>

ExFuzz is a coverage-guided fuzzer for Elixir, and I just launched v0.1.0! defmodule JasonTest do use ExUnit.Case use ExFuzz @tag timeout: 100 fuzz "Jason never crashes", data \<- binary(), seeds: \["{}", "\[1\]"\] …

---

## [Skills for targeted testing tools?](https://forum.elixirforum.com/t/skills-for-targeted-testing-tools/76749)

<div class="topic-metadata">

**Author:** [@srowley](https://forum.elixirforum.com/u/srowley)\
**Replies:** 3\
**Last updated:** [September 21, 2026, 8:14pm UTC](https://forum.elixirforum.com/t/skills-for-targeted-testing-tools/76749 "2026-09-21T20:14:32Z")

</div>

I have really enjoyed dialing in a set of static analysis tools and skills that help me help LLMs write better code. One gap I haven’t seen filled is what I will call targeted testing tools - there are plenty of analyzer…

---

## [PropWise - the library to detect and suggest code deserving property based testing](https://forum.elixirforum.com/t/propwise-the-library-to-detect-and-suggest-code-deserving-property-based-testing/74727)

<div class="topic-metadata">

**Author:** [@mudasobwa](https://forum.elixirforum.com/u/mudasobwa)\
**Replies:** 3\
**Last updated:** [August 18, 2026, 2:13pm UTC](https://forum.elixirforum.com/t/propwise-the-library-to-detect-and-suggest-code-deserving-property-based-testing/74727 "2026-08-18T14:13:28Z")

</div>

Another outcome of Language Agnostic Code Audit SaaS I’m currently working on is a PropWise library. It scans the project content, and does its best on detecting and reporting places suitable for property-based testing,…

---

## [Skuld - an effectful approach to deterministic testing, N+1 batching, and serialisable workflows](https://forum.elixirforum.com/t/skuld-an-effectful-approach-to-deterministic-testing-n-1-batching-and-serialisable-workflows/75403)

<div class="topic-metadata">

**Author:** [@mccraigmccraig](https://forum.elixirforum.com/u/mccraigmccraig)\
**Replies:** 3\
**Last updated:** [May 17, 2026, 3:26pm UTC](https://forum.elixirforum.com/t/skuld-an-effectful-approach-to-deterministic-testing-n-1-batching-and-serialisable-workflows/75403 "2026-05-17T15:26:58Z")

</div>

Skuld started out as a limited exploratory project, and then it snowballed… Most Elixir apps have a layer of orchestration code bridging whatever pure model has been extracted with side-effecting components - “fetch use…

---

## [TypeCheck - Fast and flexible runtime type-checking for your Elixir projects](https://forum.elixirforum.com/t/typecheck-fast-and-flexible-runtime-type-checking-for-your-elixir-projects/32886)

<div class="topic-metadata">

**Author:** [@Qqwy](https://forum.elixirforum.com/u/Qqwy)\
**Replies:** 100\
**Last updated:** [October 21, 2024, 4:57pm UTC](https://forum.elixirforum.com/t/typecheck-fast-and-flexible-runtime-type-checking-for-your-elixir-projects/32886 "2024-10-21T16:57:31Z")

</div>

TypeCheck: Fast and flexible runtime type-checking for your Elixir projects. Core ideas Type- and function specifications are constructed using (essentially) the same syntax as Elixir’s built-in typespecs. When …

---

## [Ash.Generator property testing for invalid inputs](https://forum.elixirforum.com/t/ash-generator-property-testing-for-invalid-inputs/64310)

<div class="topic-metadata">

**Author:** [@benswift](https://forum.elixirforum.com/u/benswift)\
**Replies:** 3\
**Last updated:** [June 19, 2024, 1:47pm UTC](https://forum.elixirforum.com/t/ash-generator-property-testing-for-invalid-inputs/64310 "2024-06-19T13:47:41Z")

</div>

The new how to guide on testing resources has some helpful ideas on how to test that actions handle valid inputs. What’s the recommended way to test that invalid inputs don’t slip through? There’s no Ash.Generator.inval…

---

## [Property-based testing slow when hitting the database](https://forum.elixirforum.com/t/property-based-testing-slow-when-hitting-the-database/58666)

<div class="topic-metadata">

**Author:** [@linusdm](https://forum.elixirforum.com/u/linusdm)\
**Replies:** 5\
**Last updated:** [October 4, 2023, 9:16am UTC](https://forum.elixirforum.com/t/property-based-testing-slow-when-hitting-the-database/58666 "2023-10-04T09:16:58Z")

</div>

I’m trying to test an Ecto query that joins a few tables, and that a lot of where conditions that have to satisfy before selecting rows. I was thinking about how property based testing would be a nice way to generate a l…

---

## [Can I test a project from outside the project?](https://forum.elixirforum.com/t/can-i-test-a-project-from-outside-the-project/50612)

<div class="topic-metadata">

**Author:** [@sandeshsoni](https://forum.elixirforum.com/u/sandeshsoni)\
**Replies:** 1\
**Last updated:** [September 28, 2022, 2:34pm UTC](https://forum.elixirforum.com/t/can-i-test-a-project-from-outside-the-project/50612 "2022-09-28T14:34:24Z")

</div>

Suppose I have a legacy rails or node-js or java project. I will write a separate new project for tests. I will check all the tests pass. Then I write a new elixir project and just change endpoint of test. If all test…

---

## [PropertyTesting : migrating from js diffing library to elixir diffing library and need help writing proptest](https://forum.elixirforum.com/t/propertytesting-migrating-from-js-diffing-library-to-elixir-diffing-library-and-need-help-writing-proptest/48538)

<div class="topic-metadata">

**Author:** [@Kaweeda](https://forum.elixirforum.com/u/Kaweeda)\
**Replies:** 4\
**Last updated:** [June 24, 2022, 7:59pm UTC](https://forum.elixirforum.com/t/propertytesting-migrating-from-js-diffing-library-to-elixir-diffing-library-and-need-help-writing-proptest/48538 "2022-06-24T19:59:08Z")

</div>

Trying to write a property based test to prove ‘js\_lib.patch(json\_a, elixir\_lib.diff(json\_a, json\_b)) == json\_b’ a , b are maps and I need to check if the diff of (a,b) is equal to b.

---

## [Podcast: Thinking Elixir - 072 TypeCheck with Wiebe-Marten Wijnja](https://forum.elixirforum.com/t/podcast-thinking-elixir-072-typecheck-with-wiebe-marten-wijnja/43725)

<div class="topic-metadata">

**Author:** [@brainlid](https://forum.elixirforum.com/u/brainlid)\
**Replies:** 0\
**Last updated:** [November 9, 2021, 1:26pm UTC](https://forum.elixirforum.com/t/podcast-thinking-elixir-072-typecheck-with-wiebe-marten-wijnja/43725 "2021-11-09T13:26:55Z")

</div>

In episode 72 of Thinking Elixir, we talk with Wiebe-Marten Wijnja about his project TypeCheck that provides a new kind of runtime type checking for Elixir applications. The syntax builds on your existing spec types so i…

---

## [Issue while trying to add propercheck dep for property testing](https://forum.elixirforum.com/t/issue-while-trying-to-add-propercheck-dep-for-property-testing/40601)

<div class="topic-metadata">

**Author:** [@dopomecana](https://forum.elixirforum.com/u/dopomecana)\
**Replies:** 3\
**Last updated:** [October 18, 2021, 12:06pm UTC](https://forum.elixirforum.com/t/issue-while-trying-to-add-propercheck-dep-for-property-testing/40601 "2021-10-18T12:06:39Z")

</div>

I receive this error == Compilation error in file path/campaign\_test.exs == \*\* (exit) exited in: GenServer.call(PropCheck.CounterStrike, {:counter\_example, {MyModuleTest, :"property\_my property tests", \[\]}}, 5000) \*…

---

## [Training Course (Free) - Introduction to Property Based Testing](https://forum.elixirforum.com/t/training-course-free-introduction-to-property-based-testing/22442)

<div class="topic-metadata">

**Author:** [@zkessin](https://forum.elixirforum.com/u/zkessin)\
**Replies:** 4\
**Last updated:** [May 26, 2021, 3:32pm UTC](https://forum.elixirforum.com/t/training-course-free-introduction-to-property-based-testing/22442 "2021-05-26T15:32:42Z")

</div>

If you are interested in Using Property Based Testing in Elixir I have a new training course on the subject. It will be about 10 lessons by email and it is free https://elixirtraining.org/pbt\_course.html?utm\_source=elix…

---

## [Building Test Factories with StreamData](https://forum.elixirforum.com/t/building-test-factories-with-streamdata/13700)

<div class="topic-metadata">

**Author:** [@bryanjos](https://forum.elixirforum.com/u/bryanjos)\
**Replies:** 5\
**Last updated:** [June 24, 2020, 5:49pm UTC](https://forum.elixirforum.com/t/building-test-factories-with-streamdata/13700 "2020-06-24T17:49:06Z")

</div>

I was trying to use StreamData with test factory functions based off of what is in “What’s new in Ecto 2.1” book (or also close to what the ExMachina package does). I created a generator for a struct and used it inside t…

---

## [Request for code review - property based test](https://forum.elixirforum.com/t/request-for-code-review-property-based-test/30977)

<div class="topic-metadata">

**Author:** [@co0lsky](https://forum.elixirforum.com/u/co0lsky)\
**Replies:** 2\
**Last updated:** [May 5, 2020, 2:09am UTC](https://forum.elixirforum.com/t/request-for-code-review-property-based-test/30977 "2020-05-05T02:09:45Z")

</div>

Greetings! I am relatively new to property-based testing. I am practicing writing property tests and hoping for a code review if any practitioner has any comments or suggestions on the test. defmodule Academy.UserPropTe…

---

## [How to go about property testing a consensus protocol using PropCheck](https://forum.elixirforum.com/t/how-to-go-about-property-testing-a-consensus-protocol-using-propcheck/28466)

<div class="topic-metadata">

**Author:** [@bibekp](https://forum.elixirforum.com/u/bibekp)\
**Replies:** 3\
**Last updated:** [January 24, 2020, 1:40am UTC](https://forum.elixirforum.com/t/how-to-go-about-property-testing-a-consensus-protocol-using-propcheck/28466 "2020-01-24T01:40:37Z")

</div>

Hi folks, I’ve lately been perusing Fred Herbert’s amazing Property\_Based Testing Book and I’ve used some of the principles here already → Merkle Property Test Now, I’m wondering how property testing can be used for d…

---

## [PropCheck "list of minimum two elements"-generator](https://forum.elixirforum.com/t/propcheck-list-of-minimum-two-elements-generator/21232)

<div class="topic-metadata">

**Author:** [@smedegaard](https://forum.elixirforum.com/u/smedegaard)\
**Replies:** 8\
**Last updated:** [January 16, 2020, 1:40am UTC](https://forum.elixirforum.com/t/propcheck-list-of-minimum-two-elements-generator/21232 "2020-01-16T01:40:29Z")

</div>

I’m trying to write property based tests for a Reverse Polish Notation calculator. I’ve implemented the RPN such that it will return an error tuple if you try to push a operator to the stack when the stack has less than…

---

## [Can you please guide me in StreamData bind function?](https://forum.elixirforum.com/t/can-you-please-guide-me-in-streamdata-bind-function/20995)

<div class="topic-metadata">

**Author:** [@houmanka](https://forum.elixirforum.com/u/houmanka)\
**Replies:** 0\
**Last updated:** [March 20, 2019, 4:39am UTC](https://forum.elixirforum.com/t/can-you-please-guide-me-in-streamdata-bind-function/20995 "2019-03-20T04:39:19Z")

</div>

From the example in the documentation, I can’t figure out how it could work. Please check the following. I get error \*\* (ArgumentError) expected a generator, which can be a %StreamData{} struct, an atom, or a tuple wit…

---

## [StreamState - stateful testing implemented on top of StreamData](https://forum.elixirforum.com/t/streamstate-stateful-testing-implemented-on-top-of-streamdata/18875)

<div class="topic-metadata">

**Author:** [@hauleth](https://forum.elixirforum.com/u/hauleth)\
**Replies:** 9\
**Last updated:** [February 16, 2019, 5:39pm UTC](https://forum.elixirforum.com/t/streamstate-stateful-testing-implemented-on-top-of-streamdata/18875 "2019-02-16T17:39:59Z")

</div>

There is long running issue on stream\_data library to implement such functionality. In the meanwhile I have created this small library (still WIP) using @alfert counter statem implementation as a base. GitHub repo Exam…

---

## [Unique StreamData Result Generation](https://forum.elixirforum.com/t/unique-streamdata-result-generation/15095)

<div class="topic-metadata">

**Author:** [@mmport80](https://forum.elixirforum.com/u/mmport80)\
**Replies:** 3\
**Last updated:** [February 16, 2019, 5:18pm UTC](https://forum.elixirforum.com/t/unique-streamdata-result-generation/15095 "2019-02-16T17:18:28Z")

</div>

I am generating a list of atoms which looks like this, \[:c, :u, :d\] |\> StreamData.one\_of() |\> StreamData.list\_of() … A little more logic to it, but it generates this: \[\[:c\], \[:c, :c, :u\], \[:c, :u, :u, :c\], \[:c\], \[:c,…

---

## [38) ElixirConf US 2018 – Picking Properties to Test in Property-Based Testing – Michael Stalker](https://forum.elixirforum.com/t/38-elixirconf-us-2018-picking-properties-to-test-in-property-based-testing-michael-stalker/16765)

<div class="topic-metadata">

**Author:** [@axelson](https://forum.elixirforum.com/u/axelson)\
**Replies:** 2\
**Last updated:** [September 28, 2018, 11:52am UTC](https://forum.elixirforum.com/t/38-elixirconf-us-2018-picking-properties-to-test-in-property-based-testing-michael-stalker/16765 "2018-09-28T11:52:44Z")

</div>

ElixirConf US 2018 – Picking Properties to Test in Property-Based Testing – Michael Stalker (@mstalker) The developer stared at the screen in frustration and grumbled, “Example-based testing…

---

## [44) ElixirConf US 2018 – Empirical Monkeys: A Practitioner’s Take on Breaking Distributed Elixir Systems via Property-Based Testing – Rafal Studnicki](https://forum.elixirforum.com/t/44-elixirconf-us-2018-empirical-monkeys-a-practitioner-s-take-on-breaking-distributed-elixir-systems-via-property-based-testing-rafal-studnicki/16807)

<div class="topic-metadata">

**Author:** [@axelson](https://forum.elixirforum.com/u/axelson)\
**Replies:** 0\
**Last updated:** [September 23, 2018, 8:34am UTC](https://forum.elixirforum.com/t/44-elixirconf-us-2018-empirical-monkeys-a-practitioner-s-take-on-breaking-distributed-elixir-systems-via-property-based-testing-rafal-studnicki/16807 "2018-09-23T08:34:41Z")

</div>

ElixirConf US 2018 – Empirical Monkeys: A Practitioner’s Take on Breaking Distributed Elixir Systems via Property-Based Testing – Rafal Studnicki Suppose you have a distributed system deploy…

---

## [Negative Property Test Cases](https://forum.elixirforum.com/t/negative-property-test-cases/16075)

<div class="topic-metadata">

**Author:** [@BadMrStinger](https://forum.elixirforum.com/u/BadMrStinger)\
**Replies:** 0\
**Last updated:** [August 24, 2018, 7:14pm UTC](https://forum.elixirforum.com/t/negative-property-test-cases/16075 "2018-08-24T19:14:00Z")

</div>

I am having a hard time coming up with negative tests. I believe it can be done with filters, but I haven’t been able to come up good working case. Say I have this test case: property “Positive Test” do check all vari…

---

## [StreamData Reduction?](https://forum.elixirforum.com/t/streamdata-reduction/15119)

<div class="topic-metadata">

**Author:** [@mmport80](https://forum.elixirforum.com/u/mmport80)\
**Replies:** 1\
**Last updated:** [July 12, 2018, 1:54pm UTC](https://forum.elixirforum.com/t/streamdata-reduction/15119 "2018-07-12T13:54:00Z")

</div>

There’s a nice map function for StreamData, but how do people do reduction? I.e. something like Enum.reduce? Suspect it would make more sense than some sort of general recursion.. I see a similar question here.

---

## [Stream Data Min String Length Filter](https://forum.elixirforum.com/t/stream-data-min-string-length-filter/15091)

<div class="topic-metadata">

**Author:** [@mmport80](https://forum.elixirforum.com/u/mmport80)\
**Replies:** 4\
**Last updated:** [July 11, 2018, 12:13pm UTC](https://forum.elixirforum.com/t/stream-data-min-string-length-filter/15091 "2018-07-11T12:13:52Z")

</div>

I am trying to generate strings which pass a rule, e.g. 1 \< length(string) \< 10 So I am using, StreamData.string( … ) |\> StreamData.filter(..) but, for some reason, I see the data sent thru the filter is always a sin…

---

## [GSoC 2018: StreamData generators out of type specifications.](https://forum.elixirforum.com/t/gsoc-2018-streamdata-generators-out-of-type-specifications/14594)

<div class="topic-metadata">

**Author:** [@njichev](https://forum.elixirforum.com/u/njichev)\
**Replies:** 1\
**Last updated:** [July 9, 2018, 9:47am UTC](https://forum.elixirforum.com/t/gsoc-2018-streamdata-generators-out-of-type-specifications/14594 "2018-07-09T09:47:52Z")

</div>

Hi everyone! I’m Nikola and I’ll be working on the following google summer of code project. I plan on updating you folks in this thread to check out the progress and maybe return feedback :slight\_smile: Week 1 13.05-1…

---

## [How to create a custom StreamData Generator](https://forum.elixirforum.com/t/how-to-create-a-custom-streamdata-generator/11935)

<div class="topic-metadata">

**Author:** [@igalic](https://forum.elixirforum.com/u/igalic)\
**Replies:** 11\
**Last updated:** [June 4, 2018, 11:19pm UTC](https://forum.elixirforum.com/t/how-to-create-a-custom-streamdata-generator/11935 "2018-06-04T23:19:47Z")

</div>

Hi folks, I’m trying to transform our tests for AuthToken (a wrapper around JOSE) to ExUnitProperties. But I’m kinda failing at the most basic task of transforming a simple function into a generator. What I’ve done is t…

---

## [Property-testing Phoenix applications](https://forum.elixirforum.com/t/property-testing-phoenix-applications/14008)

<div class="topic-metadata">

**Author:** [@ejpcmac](https://forum.elixirforum.com/u/ejpcmac)\
**Replies:** 5\
**Last updated:** [May 2, 2018, 12:31pm UTC](https://forum.elixirforum.com/t/property-testing-phoenix-applications/14008 "2018-05-02T12:31:31Z")

</div>

Hello everybody! I’ve discovered property-testing with stream\_data a few months ago. Since then, I’ve successfully re-written the tests of a library, and I’m willing to use property-testing everywhere I can. I’ve tried…
