propcheck
propcheck copied to clipboard
Property based Testing for Elixir (based upon PropEr)
When using parallel execution, the counter-example is a singleton list with a single 2-tuple containing the sequential prefix and the parallel executions. But the code was expecting it to be...
Found something strange, when I add propcheck to our project a bunch of tests that depend on Oban stop working. Has anyone else seen anything like this and know how...
## Version Propcheck v 1.4.1 ## Example Code ~~~elixir let count Enum.to_list() end ~~~ ## Error ~~~ssh ** (FunctionClauseError) no function clause matching in :proper_arith.rand_non_neg_float/1 The following arguments were given...
Issue: https://github.com/alfert/propcheck/issues/187 Currently, propcheck `forall` function requires a boolean value return, which bit inconvenient when using ExUnit assert function. This PR fixes the issue and allow the assert function with...
Often, I encounter the following bug in my tests: ``` property "test database", [], ctx do forall row_to_be_inserted = %schema{}
Hello, I am wondering why properties have to return a boolean result instead of a _truthy_ result like regular ExUnit assertions. As far as I know, it means that I...
There’s a repository targeted at comparing shrinking behaviour of various PBT libraries: https://github.com/jlink/shrinking-challenge Would be great to have propcheck therein. We’re happy to take PRs.
# Short description Adding the `numtests: some_number` option to a `property` has no effect until `MIX_ENV=test mix propcheck.clean` is run. ## To reproduce 1. Write a test that fails when...
What would be required to be able to derive types as the Erlang implementation does?
@alfert please fill this in with your proposal mentioned in #147 I just wanted to share things I've gather about this topic.