The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

    • RT @jpaternotte: "De kans op trombose op de fieldlabvlucht naar Rhodos is 100 keer groter dan bij prik met AstraZeneca."… 1 hour ago
    • RT @pmvdlinden: Vandaag in NRC. Eén van de vele voorbeelden van het uit de bocht gevlogen strenge asielbeleid. https://t.co/2PP04p2LzA 1 hour ago
    • RT @JenMsft: Canada's relationship with metric is the textbook example of "It's Complicated" https://t.co/oGduBdwPIk 1 hour ago
    • RT @WIRED: Justine Haupt's goal was simple: strip a phone down to its absolute essentials while providing a legitimate excuse to not text f… 1 hour ago
    • RT @Foone: this is so dumb and obvious from how I was yelling about it the other day: ALL THE NTFS ARE IS A JSON FILE POINTING AT A URL. TH… 2 hours ago
  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 2,314 other followers

Delphi TestInsight: running both DUnitX and DUnit tests in a test project

Posted by jpluimers on 2021/04/06

If you want to run both DUnitX and DUnit tests in a test project using TestInsight as runner encapsulation, then you need to be aware that when there are no DUnitX tests, it will raise an exception.

So use this code to prevent that:

    try
      TestInsight.DUnitX.RunRegisteredTests;
    finally
      TestInsight.DUnit.RunRegisteredTests;
    end;

–jeroen

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 
%d bloggers like this: