On Wed, 16 Apr 2008, Graeme Geldenhuys wrote:
> Hi, > > 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 ? Michael. > > 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. > ------------------------------------ > > Regards, > - Graeme - > > > _______________________________________________________ > fpGUI - a cross-platform GUI toolkit using Free Pascal > http://opensoft.homeip.net/fpgui/ > > > _______________________________________________ > fpc-devel maillist - [email protected] > http://lists.freepascal.org/mailman/listinfo/fpc-devel > > _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
