tdd

Is Agile different from TDD ? If so what are the main differences ?

Is Agile really different from TDD ? If so what are the main differences ? ...

What is the correct way to do this using TDD principles?

I'm new to TDD, and I'm trying to learn the right way to do things. So I have to make a javascript class for a web browser extension that stores the user's information to HTML5's localStorage (I'll call this class UserInfoStorage). However, I want to make my extension cross-browser compatible, and the way to interact with localStorage is...

Applying test classes to dynamic page elements with jQuery

Hi, I am working with a tester who is using Selenium in my latest project. I was trying to get some information out of him as to how i needed to name my CSS classes applied to the dynamic elements on the page that he will be testing. I think he is rather new to this himself so was going to put our findings here for comment: Testing ...

What are the types of bugs test-driven development is most effective at catching?

How can the repetition of a very short development cycle help to remove bugs from your software? What bugs is TDD most effective in catching, when implemented correctly? And why? Thanks in advance! ...

Is there a Visual studio plugin for visualizing red-green time for a TDD session ?

I read a post by Joshua Kerievsky about 'Limited Red Time' Link His org. Industrial Logic as part of a training module, has a screen where you upload an archive. In return, the screen shows you a graph of how much time were you in the red state vs the green state. It also hooks up with Resharper and annotates points at which the specif...

TDD - Refactoring into black-box?

I have a nontrivial service object developed with TDD. It started with a simple task: For an object from queue, construct an attempt for asynchronous processing. So I wrote a test around my constructAttempt() method: void constructAttempt() {...} There are numerous possible scenarios that need to be taken into consideration, so I have...

TDD and configuration variables

I'm learning TDD (in Javascript), and I wanted to know, what is the right way to use configuration variables? Should I make a separate class and have them be member variables of the class, and pass an instance of the class to every object that needs it, or make a list of global variables and just use those? What are the benefits / setbac...

TDD System Under Test Creation Patterns (AutoFixture)

I'm trying to use SUT Factory 'pattern' to create my SUT. Given the SUT structure: namespace MySut { public class Dep1 { } public class Dep2 { } public class Sut { public Sut( Dep1 dep1, Dep2 dep2 ) { } } } I'm using AutoFixture, and am wondering what's the best way to col...

How do I mock static methods in a class with easymock?

Suppose I have a class like so: public class StaticDude{ public static Object getGroove() { // ... some complex logic which returns an object }; } How do I mock the static method call using easy mock? StaticDude.getGroove(). I am using easy mock 3.0 ...

Mock objects - Setup method - Test Driven Development

I am learning Test Driven Development and trying to use Moq library for mocking. What is the purpose of Setup method of Mock class? ...

rails tests confusion

I have been trying to determine a good way to test rails apps, covering all relevant aspects... since I have no experience writing tests at all I have been looking at railscasts.com which seems like a pretty good resource to learn basic stuff for rails. but for tests I have found several episodes, some using rails unit test classes, othe...

what is Test Driven Development ?

Possible Duplicate: What is Test Driven Development (TDD)? My friend told me TDD is not about testing, that it's all about the design. I don't understand why he would think that. what do you think TDD is all about ? what are its advantages ? disadvantages ? I've found it impossible to use TDD in some projects of mine. ...

Bizmonade - testing orchestration that receives ANY document

Hello, I have an orchestration that receives any document type in BizTalk (System.Xml.Document). It looks like Bizmonade always wants to use an orchestration that specifies a type of schema that is different from ANY. OrchestrationSimulator.Test<Dummy__Simulated>() .When(MessageReceived.FromFile<CanonicalInvoice>( Path.Combine(AppDom...

Test-driven development vs. Test-first development

What is test-first development and how does it corelate to TDD? Is test-first development a general name for things like TDD? If yes, what other test-first practices do exist? ...

How can you implement test driven development with legacy code?

The situation: millions of lines of code, more than one hundred developers and frequent defects. We want to avoid repeating defects and we want to improve code design (who doesn't?). Test Driven Development (first unit test, then code) sounds ideal: write a test case for each function. But, with so much code written, how can TDD be imp...

asp.net mvc integration test

Hi Im doing TDD for an asp.net mvc project, I need to be able to do end to end testing fie sending a request to the controller action all the way to the repository. I have tried using http://blog.stevensanderson.com/2009/06/11/integration-testing-your-aspnet-mvc-application/ but unfortunately I cant get this to run and Im running out o...

Unit tests in TDD

Hi. I am quite new to TDD and the first question which came into my mind is whether I should apply unit tests to every developed component. I am asking it since I observed that unit testing takes a lot of time, especially when some changes into the requirements are provided. So, could you suggest something like best practices in TDD rega...

Learning OpenGL while practicing TDD (unit testing)

I have started a new game project, and have decided to learn and use OpenGL for it (project is being simultaneously developed on Windows and Linux). At the same time, I am also very interested in Test Driven Development, and am trying to put my best effort into writing my unit tests to lead design before any actual code. However, I thin...

PHPUnit: mocking the function

Is it possible to create a mock for the function? UPD1: $class->callback('callback_function'); I've tried to test whether callback_function was invoked once or not. ...

Which Continuous Integration Plugin for Eclipse

I do a lot of TDD and am thinking of installing a Continuous Integration Plugin for Eclipse. The two most popular seem to be JUnit Max and Infinitest. As both are "payed for", I'd like some opinions on the pros/cons/otherwise of each. Maybe there is a "free" alternative that I've missed? ...