xUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series (Fowler)) by Gerard Meszaros

xUnit Test Patterns: Refactoring Test Code (Addison-Wesley Signature Series (Fowler)) by Gerard Meszaros

Author:Gerard Meszaros [Meszaros, Gerard]
Language: eng
Format: mobi
Publisher: Pearson Education
Published: 2007-05-21T00:00:00+00:00


Note that this class doesn't subclass any other class. It does need to import TestSuite and the classes it is using as Test Suite Factories.

Example: Test Suite Procedure

In the early days of agile software development, before any agile project management tools were available, I built a set of Excel spreadsheets for managing tasks and user stories. To make life simpler, I automated frequently performed tasks such as sorting all stories by release and iteration, sorting tasks by iteration and status, and so on. Eventually, I got bold enough to write a macro (a program, really) that would sum up the estimated and actual effort of all tasks for each story. At this point, the code was becoming somewhat complex and was more challenging to maintain. In particular, if one of the named ranges used by the sorting macros was accidentally deleted, the macro would produce an error.

Unfortunately, there was no xUnit framework for VBA at the time, so all of this work was done without Tests as Safety Net (see page 24). Here is the main program of the reporting macro. All output was written to a new sheet in the workbook.

'Main Macro



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.