Giter Club home page Giter Club logo

nbehave's Introduction

NBehave

NBehave is a framework for behaviour-driven development (BDD).

BDD is an evolution of test-driven development (TDD) and acceptance-test driven design, and it is intended to make these practices more accessible and intuitive to newcomers and experts alike.

It shifts the vocabulary from being test-based to behaviour-based and positions itself as a design philosophy.

Build status

current build status

Contribute

We would love your help. Send us patches, report/fix bugs, request features, etc.

If you want to edit the Visual Studio extension you need to install these: Visual Studio 2012 SDK Visual Studio 2010 SP1 SDK

Licence

NBehave is licensed under BSD 3

nbehave's People

Contributors

gpolunin avatar morganpersson avatar petermortensen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nbehave's Issues

Excel based data driven support

Hi Team,
I'm looking for excel based data driven support from BDD tools. Do you provide the feature to utilize the excel data as parameterization?

Thanks,
Palani

Feature matches wrong steps class

I have 2 features and steps classes:

Product.feature   ProductSteps.cs
Sku.feature       SkuSteps.cs

The scenarios are similar:

Scenario: product
  Given a list of products:
       ....
  When my logic is applied
  Then should assert
Scenario: sku
  Given a list of skus:
       ....
  When my logic is applied
  Then should assert

When i run the Sku.feature it works on steps defined in ProductSteps.cs for some reason.
When i changed the When and Then clauses to be different it works as expected.

Is it a bug or a feature? In any case i think the relationship between feature and steps should be stronger.
I was assuming the engine finds the steps class by its name (feature name + "Steps").

Support for .NET Core

When installing the NBehave Nuget package into a .NET Core app I get the following error:

Package nbehave 0.6.2 is not compatible with netcoreapp1.0.

Getting started' document is too brief w.r.t. the console runner

In the 'Getting started' document, you should include a complete example of running the console runner. Alternatively improve your parser so that it gives meaningful error messages back; instead of the same error message every time.

I am trying to run NBehave-Console.exe to generate test stubs from Gherkin. With this command run from the command line.

NBehave-Console.exe /sf=ViewPremiumByApoGAdmin.feature /codegen

In reply all I ever get is: "fatal error: invalid arguments"

==================================================================
Contents of the file : ViewPremiumByApoGAdmin.feature

Feature: ViewPremiumByApoGAdmin
# New Premium preference, is viewable by ApoGAdmin
In Order To: View all settings
As an ApoGAdmin
I Want To View Premium setting

Scenario: ApoGAdminCanViewPremium
# _1 ApoGAdmin user can view Premium Setting
Given I am an ApoGAdmin
When I Go to Premium
Then I can view Premium setting

I've tried it with and without the comment lines.

NUNIT 3 support

Hello,

I have a situation when I need to support big amount of NBehave tests. They are blocking me from updating NUnit for the project.

Please review update of NBehave for NUnit3 support:
#17

Thanks.

Allow for multiple When and Then clauses

For instance

Given a scenario
  When there's one when clause
    And there's another when clause
  Then should check execute both clauses
    And do additional checks

This gives a more granular control, i.e. can create smaller steps and combine them.

NBehaveTask in msbuild does not release output xml file on exit

I have the following MSbuild targets set up:

If I run GenerateAcceptanceReport target, I get the following error:

C:\Users\vadimk\Documents\BDD\Courseware\BDDTests\BDDTests.csproj(82,5): error
MSB3703: Unable to execute transformation. The process cannot access the file '
C:\Users\vadimk\Documents\BDD\Courseware\BDDTests\bin\Debug\nbehave.results.xml
' because it is being used by another process.

The acceptance tests are run, but the report generation fails. However, if I replace the NBehave call with an Exec call directly to the console, everything works fine. It also works fine if I remove the DependsOnTargets qualification and run them one after the other

Test that shows the bug.
http://code.google.com/r/yads12-nbehave/source/detail?r=fb718ad3970d66e49bf7b0c15b6fda804e730ae9

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.