Sign in
|
Join
|
Help
in
Current Tags
Jimmy Bogard
LosTechies
(Entire Site)
Home
Merchandise
Blogs
Downloads
The Lounge
Ads by The Lounge
This Blog
Home
Contact
Syndication
RSS
Atom
Comments RSS
Recent Posts
Services in Domain-Driven Design
DDD, Repositories and ORMs
On good design and defining success
Convention, configuration and WCF
Austin DDD Book Club wrapped up
Tags
Agile
ALT.NET
altnetconf
ASP.NET
ASP.NET MVC
Austin Code Camp
Austin DDD Book Club
BDD
Behave#
Behavior-Driven Development
C#
Code smells
Continuous Integration
Design
Domain Driven Design
Domain-Driven Design
Entity Framework
Legacy Code
LINQ
LINQ to SQL
Misc
MonoRail
MSBuild
MVC
NBehave
PabloTV
Patterns
People
PTOM
Rails
Rant
Refactoring
SQL
StructureMap
TDD
Team Build
Testing
Tools
VSTS
WCF
News
Subscribe in a reader
Archives
August 2008
(8)
July 2008
(12)
June 2008
(11)
May 2008
(15)
April 2008
(10)
March 2008
(15)
February 2008
(13)
January 2008
(19)
December 2007
(9)
November 2007
(17)
October 2007
(23)
September 2007
(10)
August 2007
(11)
July 2007
(11)
June 2007
(9)
May 2007
(14)
April 2007
(7)
Jimmy Bogard
Assistant to the assistant to the regional manager
Browse by Tags
All Tags
»
Testing
(
RSS
)
Agile
ASP.NET
Behave#
C#
Legacy Code
MonoRail
Patterns
TDD
Tools
Advanced mocking: anonymous test spy
When practicing TDD, I create interfaces to abstract away the ugly stuff, like databases, file I/O, web service calls, email messages, and other external systems. I can run tests now that don't have to interact with real implementations of these external...
Posted
Mar 06 2008, 10:43 PM
by
bogardj
with | with
24 comment(s)
Filed under:
Testing
,
TDD
Advanced mocking: auto-interaction testing
When dealing with legacy systems or those not designed with specific testability scenarios in mind, you have to test your changes in non-traditional means. In normal mocking (or test double ) scenarios, you have some kind of external dependency that you...
Posted
Mar 05 2008, 09:44 PM
by
bogardj
with | with
7 comment(s)
Filed under:
Legacy Code
,
Testing
,
TDD
Unit testing MonoRail controllers - Redirects
When developing with MonoRail , one of the common operations is to redirect to other controllers and actions. Originally, I looked at the BaseControllerTester to help test, but it required a little too much knowledge of the inner workings of MonoRail...
Posted
Feb 18 2008, 09:40 PM
by
bogardj
with | with
7 comment(s)
Filed under:
Patterns
,
Testing
,
TDD
,
MonoRail
WatiN and INamingContainer adventures
I decided to add a simple WatiN acceptance test today to validate our login page. When a user enters invalid credentials, the page should show an error message. To test this, I need to set the text of the username and password, and click the Login button...
Posted
Jan 23 2008, 03:16 PM
by
bogardj
with | with
2 comment(s)
Filed under:
ASP.NET
,
Testing
Stop the madness
I've been extending a legacy codebase lately to make it a bit more testable, and a few small, bad decisions have slowed my progress immensely. One decision isn't bad in and of itself, but a small bad decision multiplied a hundred times leads to...
Posted
Nov 20 2007, 05:01 PM
by
bogardj
with | with
3 comment(s)
Filed under:
Agile
,
Legacy Code
,
Testing
Progress made
I just wanted to highlight a quote from Scott Guthrie's recent post on MVC (emphasis mine): VS 2008 Professional now includes built-in testing project support for MSTest (previously in VS 2005 this required a Visual Studio Team System SKU), and our...
Posted
Nov 15 2007, 05:15 PM
by
bogardj
with | with
3 comment(s)
Filed under:
Tools
,
Testing
A downcasting tragedy
And now, for another tale of legacy code woe, here's a gut-wrenching tragedy of OCP and downcasting , in five acts . Exposition We have a feature we're implementing that when the store's configuration settings allow for a survey link to be...
Posted
Nov 14 2007, 05:34 PM
by
bogardj
with | with
2 comment(s)
Filed under:
Legacy Code
,
Testing
Coding without confidence
As a favor to my wife, I developed an Excel application to help her employer out with scheduling and status in a small wood manufacturing shop. Excel was chosen as it was the lowest barrier to entry, and the quickest to get out the door. It wasn't...
Posted
Nov 12 2007, 03:38 PM
by
bogardj
with | with
2 comment(s)
Filed under:
Testing
Record and playback state in ASP.NET
Most ASP.NET applications hold various state objects in Session, Application, or other stateful mediums. For regression testing and defect reproducing purposes, often I want to capture the exact state of these objects and replay them back at a later time...
Posted
Nov 02 2007, 03:01 PM
by
bogardj
with | with
2 comment(s)
Filed under:
ASP.NET
,
Testing
Legacy code testing techniques: subclass and override non-virtual members
This post was originally published here . One of the core techniques in Michael Feathers' Working Effectively With Legacy Code is the "Subclass and Override Method" technique. Basically, in the context of a test, we can subclass a dependency...
Posted
Aug 31 2007, 03:22 PM
by
bogardj
with | with
no comments
Filed under:
Legacy Code
,
C#
,
Testing
Introducing Behave#
This post was originally published here . I really like the idea of executable requirements. Executable requirements is the idea that I can express requirements from the business in a human-readable, executable format. Part of fulfilling the requirement...
Posted
Jul 11 2007, 05:01 PM
by
bogardj
with | with
1 comment(s)
Filed under:
Agile
,
Testing
,
Behave#
Unit testing with stubs and Rhino Mocks
This post was originally published here . I've been using Rhino Mocks for about a year now, and Oren has never failed to impress me with the features he keeps adding on a regular basis. I needed to test a particular method that accepted an IProfile...
Posted
May 23 2007, 11:25 AM
by
bogardj
with | with
no comments
Filed under:
Agile
,
Testing
Classifying tests
This post was originally published here . When defining a testing strategy, it's important to take a step back and look at what kinds of tests we would like to develop. Each type of test has a different scope and purpose, and can be developed by different...
Posted
Apr 23 2007, 08:57 AM
by
bogardj
with | with
no comments
Filed under:
Agile
,
Testing
Copyright Los Techies 2007. All rights reserved.