Welcome, Guest
Guest Settings
Help

Thread: dunit testing



Permlink Replies: 3 - Last Post: Apr 24, 2017 10:36 AM Last Post By: al nickels Threads: [ Previous | Next ]
al nickels

Posts: 143
Registered: 7/16/09
dunit testing
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 20, 2017 3:55 PM
Does anybody know where RunRegisteredTests is located. I am trying to implement unit testing in my application.
Dan Barclay

Posts: 713
Registered: 11/9/03
Re: dunit testing
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 20, 2017 4:57 PM   in response to: al nickels in response to: al nickels
al nickels wrote:
Does anybody know where RunRegisteredTests is located. I am trying to implement unit testing in my application.

It looks like it depends on the app (I haven't set it up myself).

http://dunit.sourceforge.net/README.html

Dan
Rudy Velthuis (...


Posts: 6,546
Registered: 9/22/99
Re: dunit testing
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 21, 2017 5:00 AM   in response to: al nickels in response to: al nickels
al nickels wrote:

Does anybody know where RunRegisteredTests is located. I am trying
to implement unit testing in my application.

Depends. There are several methods, for the GUI test runner, the text
test runner and the QGUI test runner.

See ..\DUnit\src\ -> DUnitTestRunner.pas, QGUITestRunner.pas,
TextTestRunner.pas

--
Rudy Velthuis http://www.rvelthuis.de

Carlson's Consolation: Nothing is ever a complete failure; it can
always serve as a bad example.
al nickels

Posts: 143
Registered: 7/16/09
Re: dunit testing
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 24, 2017 10:36 AM   in response to: Rudy Velthuis (... in response to: Rudy Velthuis (...
I found the problem. I was using Application.RunRegisteredTests instead of TextTestRunner.RunRegisteredTests. Also, has the DUnitX framework replaced the DUnit framework.

Rudy Velthuis (TeamB) wrote:
al nickels wrote:

Does anybody know where RunRegisteredTests is located. I am trying
to implement unit testing in my application.

Depends. There are several methods, for the GUI test runner, the text
test runner and the QGUI test runner.

See ..\DUnit\src\ -> DUnitTestRunner.pas, QGUITestRunner.pas,
TextTestRunner.pas

--
Rudy Velthuis http://www.rvelthuis.de

Carlson's Consolation: Nothing is ever a complete failure; it can
always serve as a bad example.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02