Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FsCheck observed functionality not shown in default testProperty functions #442

Open
stijnmoreels opened this issue Nov 1, 2022 · 0 comments

Comments

@stijnmoreels
Copy link

Is your issue related to a problem? Please describe:
When using Expecto's testProperty functions, the FsCheck observed functionality like classification, trivial, and collection (info) to inspect test data distribution does not work. One has to call FsCheck's functionality via Check.Quick inside a regular test function before the observed data is shown.

What solution do you propose?
Make use of FsCheck observation when running properties so that one could write the following without problem, and is written to Expecto's test output.

testProperty "addition is commutative" <| fun x y ->
  x + y = y + x
  |> Prop.classify (x = y) "equal"
  |> Prop.classify (x <> y) "not-equal"

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant