bdd

A BDD example - why test "happy path" only?

I've accidentally stumbled upon an old article by Luke Redpath that presents a very simple BDD example (very short and easy to follow even for non-Ruby programmers like me). I found the end result very incomplete, thus making the example pretty useless. The end result is a single test which verifies that a user with preset attributes is...

What's the best BDD framework for working with ASP.NET MVC 2 + C# 4?

I just heard about BDD when I watch video of Scott Guthrie in Sweden. One of listener asked question to Scott about How VS2010 and ASP.NET MVC do to support BDD. After that, I search about BDD (Behavior Driven Development) that focus on specification more than unit testing when compares with TDD (Test Driven Development). I found some f...

Writing a spec for helper with Ruby on Rails and RSpec

I have been writing specs for controllers and models, but I have never written a helper spec. I have no idea where I start. I have the following snippet in application_helper.rb def title(page_title) content_for(:title) { page_title } end How should I write a helper spec on the code? Also if there's any open-source Rails app...

rake test finding tests. autotest not finding them

$ rake test $ rake test (in /Users/ethan/project/mtc/completestreets) /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:test" "/Library/Ruby/Gems/1.8/gems/rake-0...

Is there a way to BDD Ruby Shoes?

Hi there, I'm looking for some solutions to BDD a new Shoes app. Any suggestions ...

How to do full stack integration testing of web applications

I'm looking to enhance our current test suites, and continuous integration builds with full stack integration/acceptance testing. I'm looking into tools like Culerity and Selenium that can execute front end javascript while running user stories. I'm looking for something that can provide coverage of front-end javascript and high level ...

Best automatic test framework for octave

Which is the best framework for automatic testing in octave? Why? ...

In Rails controller tests, Is there a way to simulate a specific remote IP?

Some functionality in my app works differently depending on the client's IP address. Is there a way to test that in Rails functional tests? I'm using Test::Unit and Shoulda. ...

How to compare two lists of objects using moq with mspec (BDD style)

I've just started to explore BDD for my current project. I'm using moq with mspec to get nice test outputs. However, i can't find enough examples of what i'm trying to do, maybe i'm using the wrong approach or perhaps just don't understand the syntax enough, please advise. The problem is i'm trying to verify whether a property has been ...

Cuke4Nuke or SpecFlow?

I am trying to decide if I should use Cuke4Nuke or SpecFlow. What are the pro/cons of each? Opinions on which is better and why. Thanks! ...

How to BDD with GWT using MSpec? The correct way to write this scenario...

I'm just starting to practice BDD using the GWT approach to the following code exert and just realised that I can't do the second test. My GWT goes something like Given there exists an open query When the user replies to the query Then it should save the reply if the reply is not blank Then it should notify the user and not save the ...

Pyccuracy hangs in Ubuntu Karmic

I was able to successfully run suites of tests before upgrading to Karmic. Now when running pyccuracy_console, Pyccuracy starts, outputs "Running first test...", and hangs. Is anyone aware of a fix for this? OS: Ubuntu 9.1 Karmic Pyccuracy: v1.2.8 ...

BDD/TDD mocking data the tricky way.

So a coworker and I are in a fairly heated debate. We are beginning a new project and we are attempting to use BDD. We are both first-timers and don't fully understand what practices should be used. We've written some specs and we are now implementing the code. Things are getting pretty tricky since there is a lot of database interaction...

TDD/BDD screencast/video resources

I've recently finished watching the Autumn of Agile screencasts and I'm looking for more material of similar scope. Basically, I'm looking for screencasts that present TDD/BDD process while developing somewhat "real life" applications (or parts of them) - so no 20 minute intros please. I'm surprised not to find anything like that though....

How Do I Describe 'Less Than Simple' Behavior (BDD) in Code?

Suppose that I am intending to draw some user-supplied text on a bitmap in C#, what sort of tests would I write up front? Is this sort of thing even possible? BDD seems very straight-forward when dealing with mathematical problems but I find it near impossible and more trouble than it's worth when dealing with custom UI controls, graph...

NullPointerException Using JMockit to Test Mocked java.io.File Twice

I'm getting a NullPointerException when I try to use a mocked File with JMockit: package com.metamolecular.poobah.test; import java.io.File; import junit.framework.TestCase; import mockit.Expectations; import mockit.Mocked; public class MockedFileTest extends TestCase { @Mocked File file; public void testMockedFileCanBeUsed1() thr...

TDD: "Test Only" Methods

Looking for some practical advice here and any experiences people have had in a similar situation. We use a BDD/TDD sytle methodology for building our software (quite a large/complex application) The end result is.. behavioral specifications (Given/When/Then style) derived from business requirements, unit tests that reflect these and co...

Cucumber+Capybara: Problem with a scenario that redirects the browser outside of my app

Given I have a rails app And I'm using cucumber And I'm using capybara And I have an action that results in a redirect_to "http://some.other.domain.com/some_path" When I test this action Then the in-app portion of the test works fine But I see this error: No route matches "/some_path" with {:method=>:get} (ActionController::RoutingError)...

BDD with ASP.NET MVC

Hi there, I just started devoloping ASP.NET MVC Web applicatons. One thing I like about ASP.NET MVC is the built in test environment. It gives you the possibility to write unit tests and built test driven web applications (TDD). But I'm missing the possibility to do behaviour driven development (BDD). BDD can be done nicely using Ruby ...

What BDD Frameworks are people using with Mono/MonoDevelop

I want to start using Behaviour Driven Development (BDD) in Mono/MonoDevelop using a natural language approach like Cucumber or SpecFlow. Is anyone doing this and, if so, what have they used and was it straightforward to set up. Thanks Neil ...