.com
Hosted by:
Unit testing expertise at your fingertips!
Home | Discuss | Lists

Fixture Setup Patterns

Recent Changes

Delegated Setup Category: Fixture Setup Patterns 18 February 2007
Each test creates its own Fresh Fixture by calling Creation Methods from within the Test Methods.
SuiteFixture Setup Category: Fixture Setup Patterns 6 November 2006
We build/destroy the shared fixture in special methods called by the Test Automation Framework before/after the first/last Test Method is called.
Lazy Setup Category: Fixture Setup Patterns 6 November 2006
We use Lazy Initialization of the fixture to create it in the first test that needs it.
Shared Fixture Construction: Category: Fixture Setup Patterns 6 November 2006
Pick an appropriate strategy for when to construct the Shared Fixture.
Chained Tests Category: Fixture Setup Patterns 6 November 2006
We let the other tests in a test suite set up the test fixture.
Prebuilt Fixture Category: Fixture Setup Patterns 6 November 2006
Build the Shared Fixture separately from running the tests.
Setup Decorator Category: Fixture Setup Patterns 6 November 2006
We wrap the test suite with a Decorator that sets up the shared test fixture before running the tests and tears it down after all the tests are done.
Creation Method Category: Fixture Setup Patterns 14 October 2006
Set up the test fixture by calling methods that hide the mechanics of building ready-to-use objects behind Intent Revealing Names.
Fresh Fixture Setup: Category: Fixture Setup Patterns 1 October 2006
Pick an appropriate strategy for organizing the code that sets up the test fixture.
Inline Setup Category: Fixture Setup Patterns 25 October 2003
Each Test Method creates it's own Fresh Fixture by calling the appropriate constructor methods to build exactly the test fixture it requires.
Implicit Setup Category: Fixture Setup Patterns 10 October 2003
Build the test fixture common to several tests in the setUp method.

Page generated at Wed Feb 09 16:39:54 +1100 2011

Copyright © 2003-2008 Gerard Meszaros all rights reserved

All Categories
Introductory Narratives
Web Site Instructions
Code Refactorings
Cross References & Lists
Database Patterns
DfT Patterns
External Patterns
Fixture Setup Patterns
Fixture Teardown Patterns
Front Matter
Glossary
Misc
References
Result Verification Patterns
Sidebars
Terminology
Test Double Patterns
Test Organization
Test Refactorings
Test Smells
Test Strategy
Tools
Value Patterns
XUnit Basics
xUnit Members
All "Fixture Setup Patterns"
Fresh Fixture Setup:
--Inline Setup
--Delegated Setup
----Creation Method
--Implicit Setup
Shared Fixture Construction:
--Prebuilt Fixture
--Lazy Setup
--SuiteFixture Setup
--Setup Decorator
--Chained Tests