Hi All,

It's been a while since I looked, but I think that the DUnit2 changes are significant, if not major, in their impact to the DUnit code, even if not to existing unit test suites themselves. Unfortunately I do not have the bandwidth myself to lend much of a hand, but Jarrod had left it that he was going to do an audit of differences and a test migration or two, so I am certainly interested to hear how much of a challenge that he think it is.

I certainly think sharing a prototype for Kris's changes would be a good short term measure, and a branch seems a reasonable way to do that, if only so that we can better gauge the impact and effort to build and release it.

We also still owe a release with the many changes that Mark and Embarcadero have checked in since 9.3 (April 2011), and I could probably find time to dig out my scripts and put one together before we commenced.

Just my 2c!

Jud

On 10/1/2012 5:36 PM, Kris Golko wrote:
Hi Mark,

If I remember correctly DUnit2 improvements are related to the test runner. Perhaps we should wait with branching until DUnit2 is merged - in the meantime we could create a prototype. On the other hand making better use of RTTI should allow to improve the runner as well.

Jarrod, Paul, Jude: what do you think would be the best course of action?

Cheers


From: Mark Edington <medington@users.sourceforge.net>
To: Users of the DUnit Xtreme testing framework for Delphi <dunit-interest@lists.sourceforge.net>
Sent: Monday, 1 October 2012, 21:39
Subject: Re: [DUnit-interest] DUnit improvements

Kris,

I'm all for making incremental improvements to the framework, and this certainly seems like something that would be very useful to have. With the current RTTI support, it should even be possible to avoid having to explicitly call RegisterTest for each test class.

This does bring up again the whole DUnit2 discussion, and if it makes sense to embrace invest this older code base or the newer one.

-- Mark
 
On 9/30/2012 12:23 PM, Juancarlo Añez wrote:
Kris,

It makes sense.

As long as there's a Delphi 7 compatible version, most projects will be fine.

-- Juanca

On Sun, Sep 30, 2012 at 3:59 AM, Kris Golko <krzysztofgolko@yahoo.com> wrote:
Hi All,

As Delphi supports attributes now, it would be easy to modify DUnit, so a test procedure is designates as test by applying the [test] attribute (mirroring NUnit). While trying to implement the change I realised that further modifications are needed - you can only find pointer to a procedure if it's published, so the procedure needs to be executed using TRttiMethod.Invoke. I have a prototype working, but I can't help noticing that the code is becoming increasingly cluttered and suboptimal. For example, TMethodEnumerator could be eliminated.

Currently DUnit design reflects limitation of earlier versions of Delphi. As these limitation have been overcome in Delphi 2010, I think the best course of action would branching DUnit to create DUnit for Delphi 2010 and above. It would allow to rationalise the code and open the way to further improvements.

What do you reckon?




------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Dunit-interest mailing list
Dunit-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dunit-interest




--
Juancarlo Añez


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Dunit-interest mailing list
Dunit-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dunit-interest




------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html


_______________________________________________
Dunit-interest mailing list
Dunit-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dunit-interest