[fpc-devel] FPCUnit: change proposal
Michael Van Canneyt
michael at freepascal.org
Wed Apr 16 09:32:55 CEST 2008
On Wed, 16 Apr 2008, Graeme Geldenhuys wrote:
> We use FPCUnit and DUnit2 (branch of DUnit v1) extensively in the tiOPF
> [http://www.tiopf.com] project. DUnit2 has some impressive enhancements added
> and improved design.
> One of the improvements is built-in support of SetupOnce/TeardownOnce without
> the need for Decorators. Currently we have to add lots of IFDEF's in the unit
> test code to make it compilable with DUnit2 and FPCUnit. Though the latter is
> falling behind on features.
> Would there be any objections if I added built-in support for
> SetupOnce/TeardownOnce in FPCUnit (without the need for decorators)?
If you leave the decorators intact, I don't see why not. I don't think
using one excludes the other ?
> Some developers don't like the Decorator approach much. Here are some comments
> from them:
> ----------- Quotes -----------------
> * I'd do everything possible to stay away from the Decorator (a problem
> looking for a solution)
> * There is no natural linkage between the decorator, the target code and
> shared data. Besides they clutter the treeview.
> - Graeme -
> fpGUI - a cross-platform GUI toolkit using Free Pascal
> fpc-devel maillist - fpc-devel at lists.freepascal.org
More information about the fpc-devel