bdd

What's the best way to implement BDD/TDD in .NET 2.0?

I'm looking to add a testing suite to my application, however I can't move to the newer testing frameworks for .NET 3.5. Does anyone have a suggestion about good testing frameworks to use?...

What are the primary differences between TDD and BDD?

Test Driven Development has been the rage in the .NET community for the last few years. Recently, I have heard grumblings in the ALT.NET community about BDD. What is it? What makes it different from TDD?...

Is anybody using the Specter BDD Framework?

I was reading the example chapter from the book by Ayende and on the website of the Boo language I saw a reference to the Specter BDD Framework. I am wondering if anybody is using it in their project, how that works out and if there are more examples and/or suggested readings. Just in case you are wondering, I'm a C# developer and so I...

Rhino Mocks - How can I test that at least one of a group of methods is called?

Say I have an interface IFoo which I am mocking. There are 3 methods on this interface. I need to test that the system under test calls at least one of the three methods. I don't care how many times, or with what arguments it does call, but the case where it ignores all the methods and does not touch the IFoo mock is the failure case. I...

RSpec Stories and Specs: When to use what?

So I want to start using RSpec stories, but I am not sure where writing controller, model and view specs fit in. For example, you have the story "Logging in" with "User provides wrong password" scenario, don't you end up testing the same stuff than controller/model specs (response.should render..., user.should be_nil, etc.) So my ques...

Are there any good open source BDD tools for C/C++?

I love the Ruby RSpec BDD development style. Are there any good tools for doing this with C/C++? ...

Shoulda testing workflow from the trenches

Everyone is talking about TDD (BDD) in Rails (and not just Rails) development world today. It's easy to find plenty of good general information about it, there are quite a few tools you can use for this purpose and there are many (good) examples of how to use them. Now, I'm already on the train. I like the idea (never did TDD before) a...

Practicing BDD with python

Which are the most advanced frameworks and tools there are available for python for practicing Behavior Driven Development? Especially finding similar tools as rspec and mocha for ruby would be great. ...

Fetching 'action_name' or 'controller' from helper spec

Hi all, my first question here. Let say I have the following code in application_helper.rb def do_something if action_name == 'index' 'do' else 'dont' end end which will do something if called within index action Q: How do I rewrite the helper spec for this in application_helper_spec.rb to meet simulate a call from 'index'...

What is the most mature BDD Framework for .NET?

We have been using BDD (from Dan North's perspective) as a mechanism to record user acceptance tests and drive development on a couple of projects, with decent success. To date though we have not actually automated the tests themselves. I am now looking in to automating the tests, but I am not sure which behaviour framework to back. So ...

Isolation level of automated BDD scenarios?

What isolation level should you be aiming for when automating your scenarios? Should they be completely isolated, as with proper unit tests (ie using mocks etc), or are they more akin to integration tests? ...

PHPSpec - fail to run, anyone using it for php development?

Searched stackoverflow for this and found no answer Coming from Ruby On Rails and Rspec, I need a tool like rspec (easier transition). Installed it through PEAR and tried to run it but it's not working (yet) Just wanna ask around if anyone's using it have the same problem, since it's not running at all tried running it with an example...

Any BDD success stories out there?

Having written a small article on BDD, I got questions from people asking whether there are any cases of large-scale use of BDD (and specifically NBehave). So my question goes to the community: do you have a project that used BDD successfully? If so, what benefits did you get, and what could have been better? Would you do BDD again? Wo...

What steps would you recommend to move from TDD to BDD?

If you want to move your development process from Test-Driven Development to Behavior-Driven Development what path would you take or recommend? What are the possible challenges that you might face? Moving the development process will be a huge task itself as the paradigm changes, a shift happens in the thought process and the outlook o...

What Should be Tested

If a customer has a requirement - product names should not be more than 50 characters long, does this suggest a story/spec should be written for this if the framework being used already has a well tested validation framework (Rails for instance). To be more general, should one test the specifics for each area of validation for the parti...

Rhino Mocks - Stub .Expect vs .AssertWasCalled

Disclosure: I am a Rhino Mocks n00b! OK, I know there has been a lot of confusion over the new AAA syntax in Rhino Mocks, but I have to be honest, from what I have seen so far, I like. It reads better, and saves on some keystrokes. However, I am having problems getting my head around this, and seek some advice to make sure I am not mis...

What is the Path to Learn BDD on Ruby On Rails?

I want to start BDD on Ruby On Rails what should I learn? I don't know anything about BDD, RSpec or Cucumber. What is the best way to learn? Tutorials? Something that cover things like 'What behavior I should test?' etc. thanks! ...

Why is this Rails controller test failing?

I'm trying to understand why this test is failing. (I'm kind of new to testing.) I'm using the built-in Rails testing framework with the addition of the Shoulda gem. The test: require 'shoulda' context "on GET to :new" do setup do get(:new) end should_render_template :new should_not_set_the_flash end Fails: 1) Failur...

How do you spec out "read-only" behavior of a Model?

For example, let's say I have a Question model, that has the boolean fields answered and closed. How would I test the behavior that a Question should be read only when marked as answered using RSpec? This seems like it's the behavior of the model, but I'm not sure how to best test it. Should I be using a before filter for this behavio...

What's the state of TDD and/or BDD in PHP?

How widespread, supported, developed is testing in the PHP world? On par with Java? Up there with Ruby/Rails? I Googled and found that testing frameworks exist but I'm wondering if they're widely used. Do the major PHP IDE's have built-in test runners the way Eclipse's Java tools do or NetBeans's Ruby/Rails tools do? Is testing built i...