FsCheck 2.3.0

FsCheck is a tool for testing .NET programs automatically. The programmer provides
a specification of the program, in the form of properties which functions, methods
or objects should satisfy, and FsCheck then tests that the properties hold in a
large number of randomly generated cases.

While writing the properties, you are actually writing a testable specification of your program.

Specifications are expressed in F#, C# or VB, using combinators defined
in the FsCheck library. FsCheck provides combinators to define properties,
observe the distribution of test data, and define test data generators.
When a property fails, FsCheck automatically displays a minimal counter example.

There is a newer prerelease version of this package available.
See the version list below for details.
Install-Package FsCheck -Version 2.3.0
dotnet add package FsCheck --version 2.3.0
paket add FsCheck --version 2.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Command shrinker now takes preconditions into account. Behavior could be slightly different, overall should be a clear improvement.
Command generator now stops after trying a number of times when it can't find a command that satisfies the preconditions. Previously, it would loop forever.
Exposed Command.generate and Command.shrink. Obsoleted Command.generateCommands in favour of Command.generate.
Added Gen.where as a synonym for Gen.suchThat.
Expanded StateMachine with stop command and max number of commands, better shrinking that also removes loops, and lots of bugfixes.

Version History

Version Downloads Last updated
3.0.0-alpha3 14,683 12/30/2017
3.0.0-alpha2 5,349 10/19/2017
3.0.0-alpha1 600 9/26/2017
2.10.10 1,874 5/15/2018
2.10.9 7,298 4/10/2018
2.10.8 12,358 3/3/2018
2.10.7 9,731 1/29/2018
2.10.6 6,849 12/30/2017
2.10.5 1,386 12/28/2017
2.10.4 31,841 11/8/2017
2.10.3 7,167 9/26/2017
2.10.2 5,631 9/25/2017
2.10.1 566 9/23/2017
2.10.0 10,285 9/7/2017
2.9.2 5,989 8/28/2017
2.9.1 238 8/27/2017
2.9.0 56,335 5/18/2017
2.9.0-rc3 2,736 5/7/2017
2.9.0-rc2 102 5/6/2017
2.9.0-rc1 102 5/6/2017
2.8.2 4,719 5/6/2017
2.8.1 570 5/1/2017
2.8.0 13,360 3/15/2017
2.7.2 5,199 3/5/2017
2.7.1 7,990 2/13/2017
2.7.0 6,518 1/15/2017
2.6.3 223 1/13/2017
2.6.2 78,117 10/7/2016
2.6.1 3,707 9/25/2016
2.6.0 28,927 8/3/2016
2.5.0 26,356 6/7/2016
2.4.0 10,622 4/20/2016
2.3.0 (current) 2,205 4/11/2016
2.2.5 2,608 3/28/2016
2.2.4 18,756 12/17/2015
2.2.3 2,691 11/26/2015
2.2.2 2,714 11/14/2015
2.2.1 881 11/5/2015
2.2.0 5,211 11/1/2015
2.1.0 8,024 9/30/2015
2.0.7 11,407 8/20/2015
2.0.6 528 8/14/2015
2.0.5 9,206 7/31/2015
2.0.4 2,719 7/20/2015
2.0.3 27,394 7/10/2015
2.0.2 277 7/7/2015
2.0.1 6,610 5/23/2015
2.0.1-rc1 178 5/23/2015
2.0.0-alpha 235 4/27/2015
1.0.4 14,454 12/9/2014
1.0.3 2,192 11/18/2014
1.0.2 952 10/27/2014
1.0.1 1,633 10/18/2014
1.0.0 3,447 8/3/2014
0.9.4 20,782 5/24/2014
0.9.3 777 5/9/2014
0.9.2 18,544 11/7/2013
0.9.1 3,067 7/2/2013
0.9.0.1 275 6/21/2013
0.9.0 358 6/18/2013
0.8.3 1,194 8/26/2012
0.8.2 434 7/4/2012
0.8.1 369 6/25/2012
0.7.1 868 5/29/2011
Show less