haf / expecto

A smooth testing lib for F#. APIs made for humans! Strong testing methodologies for everyone!
Apache License 2.0
663 stars 96 forks source link

testProperty doesn't seem to exist? #473

Closed Arrow7000 closed 10 months ago

Arrow7000 commented 10 months ago

I'm trying to do some property testing. As far as I can tell I followed all the instructions from the readme, but testProperty just doesn't seem to exist in the Expecto namespace at all?

When I start typing testP only testParam comes up. testProperty appears to be undefined.

image

image

I'm using Expecto version 10.1.0 and FSharp.Core version 7.0.300. I also have FsCheck version 2.16.6 installed, although I'm not entirely sure if FsCheck is required.

Arrow7000 commented 10 months ago

I managed to fix this. Turns out Expecto.FsCheck is an entirely separate Nuget package from Expecto and needs to be installed separately. The readme didn't make that clear.