Xbehave 0.11.0

A BDD/TDD framework based on xUnit.net inspired by the Gherkin behaviour language. Dispenses with the need to map Gherkin feature files to code implementations by allowing the developer to bake the behaviours/specifications directly into code. Designed for use either from day one or as a seamless addition to an existing xUnit.net based workflow.

There is a newer version of this package available.
See the version list below for details.
Install-Package Xbehave -Version 0.11.0
dotnet add package Xbehave --version 0.11.0
<PackageReference Include="Xbehave" Version="0.11.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Xbehave --version 0.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

(Enhancement) Support disposal of objects created within a failing step (https://bitbucket.org/adamralph/xbehave.net/issue/10).

 - *** BREAKING CHANGES *** Removed (Func<IDisposable> body), (Func<IEnumerable<IDisposable>> body) and (Action body, Action dispose) step definition overloads. It is important to note that an IDisposable object returned from a step body declared as an expression will no longer be disposed. Instead, register the object for disposal with the Using() extension method. E.g. "Given some disposable".Given(() => someDisposable = new SomeDisposable().Using()); See http://adamralph.blogspot.com/ for more details.

 - Added IDisposable.Using() extension method for registration of IDisposable objects.

 - Added IStepDefinition.Teardown(Action teardown) for declaring a teardown action associated with objects created within a step.

(Bug) The body of a step with a timeout is executed twice (https://bitbucket.org/adamralph/xbehave.net/issue/15)

(Bug) Infinite loops in test runner when scenario method has params but no data provided (https://bitbucket.org/adamralph/xbehave.net/issue/12).

Other

 - Simplified test names to always include context number and test number in the format [{context}.{test}].

 - Added compression of whitespace in step text.

Showing the top 7 GitHub repositories that depend on Xbehave:

Repository Stars
config-r/config-r
Write your .NET configuration files in C#
adamralph/bullseye
⊙ A .NET library for describing and running targets and their dependencies.
adamralph/simple-exec
🏃 A .NET library that runs external commands.
adamralph/liteguard
🔒 The most simple, unambiguous, and lightweight .NET guard clause library.
adamralph/minver
🏷 Minimalistic versioning using Git tags.
adamralph-archive/bau
The C# task runner
jamesfoster/DeepEqual
An extensible deep comparison for .NET

Read more about the GitHub Usage information on our documentation.

Version History

Version Downloads Last updated
2.4.1 43,818 10/30/2019
2.4.1-rc.1 1,460 10/6/2019
2.4.0 107,977 7/17/2018
2.4.0-rc.1 154 7/2/2018
2.4.0-beta.2 148 6/1/2018
2.4.0-beta.1 475 5/6/2018
2.3.1 19,923 5/21/2018
2.3.1-beta0001-build733 721 12/23/2017
2.3.1-alpha0001-build731 433 12/11/2017
2.3.0 27,766 12/10/2017
2.3.0-rc0001-build717 4,032 11/3/2017
2.3.0-beta0006-build711 460 11/3/2017
2.3.0-beta0005-build706 1,342 11/2/2017
2.3.0-beta0004-build693 295 10/31/2017
2.2.0-beta0003-build685 29,861 12/21/2016
2.2.0-beta0002-build681 392 11/28/2016
2.2.0-beta0001-build680 377 11/27/2016
2.1.4 13,821 10/11/2016
2.1.3 518 10/11/2016
2.1.0 12,377 4/27/2016
2.0.1 16,738 10/5/2015
2.0.1-beta001-build598 789 10/4/2015
2.0.0 1,792 8/6/2015
2.0.0-rc003-build581 970 5/18/2015
2.0.0-rc002-build543 656 4/18/2015
2.0.0-rc001-build541 594 3/26/2015
2.0.0-beta008-build523 533 3/21/2015
2.0.0-beta007-build521 454 3/19/2015
2.0.0-beta006-build519 614 3/17/2015
2.0.0-beta005-build515 585 3/17/2015
2.0.0-beta004-build500 617 12/24/2014
2.0.0-beta003-build498 498 12/24/2014
2.0.0-beta002-build494 529 12/13/2014
1.1.0 25,594 3/16/2014
1.0.0 5,289 10/9/2013
0.17.0 543 10/3/2013
0.16.0 690 9/3/2013
0.15.0 2,953 6/4/2013
0.14.0 787 11/7/2012
0.13.0 674 10/3/2012
0.12.0 715 7/25/2012
0.11.0 643 7/9/2012
0.10.0 725 5/21/2012
0.9.0 635 4/26/2012
0.8.0 637 4/11/2012
0.7.0 726 2/27/2012
Show less