3,374

Downloads

664

Downloads of v 2.5.1

2

Average downloads per day

2014-05-16

Last published

Share on Social Networks

License details

provided by Sonatype

MIT

NTestCaseBuilder

2.5.1

This is a .NET library that generates sets of test cases, for use by parameterised tests.

Think of it as being a DSL for making 'object mothers', whose generated data can be used as test cases (or for any other purpose, for that matter).

Each test case is built up progressively from smaller pieces of data that are combined together.

The smallest pieces are referred to as 'test variables'. Each test variable is constrained to take values from its own set of allowed 'levels'.

Changing each test variable independently to a new level produces a new test case.

If a test requires a certain 'strength' of coverage of combinations of levels from different test variables, the library produces a stream of test cases that honour this guarantee while avoiding getting swamped with a combinatoric explosion of test cases.

If a parameterised test fails with an exception for a specific test case, the library creates a signature that allows it to reproduce the failing test case immediately in a separate test; this is to aid debugging.

The sources are written in F#, but the API can be used just as comfortably from C# as from F#.

The documentation is on the front page of the GitHub site: https://github.com/sageserpent-open/NTestCaseBuilder.

You can also find sample code ready to run by installing the NuGet samples package: https://www.nuget.org/packages/NTestCaseBuilder.Samples.

To install NTestCaseBuilder, run the following command in the Package Manager Console

Install-Package NTestCaseBuilder

Owners

Authors

SageSerpent Ltd

Copyright

Copyright SageSerpent Ltd © 2014

Tags

Dependencies

Version History

Version Downloads Last updated
NTestCaseBuilder 2.5.0 141 Sunday, May 11, 2014
NTestCaseBuilder 2.4.0 184 Monday, February 17, 2014
NTestCaseBuilder 2.3.0 152 Friday, January 31, 2014
NTestCaseBuilder 2.2.0.1 142 Saturday, November 16, 2013
NTestCaseBuilder 2.2.0 160 Sunday, October 27, 2013
NTestCaseBuilder 2.1.1 162 Sunday, October 13, 2013
NTestCaseBuilder 2.1.0 151 Sunday, October 13, 2013
NTestCaseBuilder 2.0.0 165 Sunday, October 6, 2013
NTestCaseBuilder 1.3.3 242 Tuesday, February 26, 2013
NTestCaseBuilder 1.3.2 179 Monday, February 25, 2013
NTestCaseBuilder 1.3.1 193 Sunday, February 3, 2013
NTestCaseBuilder 1.3.0 178 Friday, January 18, 2013
NTestCaseBuilder 1.2.2 180 Monday, January 7, 2013
NTestCaseBuilder 1.2.1 172 Monday, January 7, 2013
NTestCaseBuilder 1.2.0 309 Wednesday, September 19, 2012