Jump to content
RaelB

Does TDUnitX.RegisterTestFixture serve a purpose?

Recommended Posts

Hi,

I see if a class has the [TestFixture] attribute, then it will be included in the Test Suite. So it seems that the

 

initialization
   TDUnitX.RegisterTestFixture(TMyTests);

 

is not neccessary. Maybe it just a relic from the past, or does it still serve a purpose?

Share this post


Link to post

Picking up tests solely by [TestFixture] only works if you use {$STRONGLINKTYPES ON} or somehow reference the testcase class - otherwise the linker will strip it.

That is why TDUnitX.RegisterTestFixture usually is a better choice (imo)

Edited by Stefan Glienke
  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×