![]() |
|
Intraweb DUnit Testing - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Intraweb DUnit Testing (/thread-973.html) |
RE: Intraweb DUnit Testing - Alexandre Machado - 11-15-2021 I'm working on a new update which will resolve this issue. Seems that the installer is not copying the file to the correct location. I'll keep you posted. Cheers, RE: Intraweb DUnit Testing - Alexandre Machado - 11-15-2021 Hi Bob, Please update to this version: https://www.atozed.com/2021/11/intraweb-15-2-44/ I believe all issues have been fixed. I manually tested the installation and file IWTestFramework.res is being correctly installed. Also the wizard is creating a correct project file (and unit test files) as well. Please let me know how it goes. Cheers, RE: Intraweb DUnit Testing - ebob42 - 11-19-2021 Thanks very much for your support. All issues have been fixed, the generate DUnit Test project compiles and runs without AV. The only thing about the generated code is that you cannot call Free (of the Session) in the Test method, but must delay that until the TearDown method: type TIWTestCase1 = class(TTestCase) private Session: TIWTestApplication; ... procedure TIWTestCase1.SetUp; begin // Setup Session := NewSession(); end; procedure TIWTestCase1.TearDown; begin // Clean up Session.Free; end; procedure TIWTestCase1.Test; begin with Session.MainForm as TIWForm1 do begin // your testcode here... end; end; |