DUnitX icon indicating copy to clipboard operation
DUnitX copied to clipboard

DUnitXFiremonkeyGUI_D10Tokyo.dproj example crashes in 10.3 Rio

Open MHumm opened this issue 6 years ago • 7 comments

I just tried to find out how to use DUnitX with a FMX GUI runner (in order to be able to run tests on other platforms as Windows as well).

Since I couldn't find a Rio named sample project for the FMX GUI runner I tried to run the Tokyo based one.

Steps:

  1. Start 10.3 Rio RTM IDE
  2. Open DUnitXFiremonkeyGUI_D10Tokyo.dproj
  3. Press F9
  4. Get a crash in TControl.EndUpdate in the for loop: argument out of range

Stack trace:

:750fab32 KERNELBASE.RaiseException + 0x62 :006c593b TControl.EndUpdate + $3B FMX.Controls.TControl.EndUpdate

Sorry, but the stack trace is so short.

Remark: I didn't install December update/hotfix for 10.3 Rio.

MHumm avatar Jan 21 '19 19:01 MHumm

I don't use fmx so can't really help on this, did you try debugging it?

vincentparrett avatar May 07 '19 05:05 vincentparrett

Sorry, not more than I posted. I have to retest this with Rio update 1 now as soon as I find time.

MHumm avatar May 07 '19 20:05 MHumm

I can confirm the crash (still in 10.4)

bernd5 avatar Jan 08 '21 09:01 bernd5

I can't open this example in D11. In fact, I can't open DUNitX.Loggers.GUIX.pas in D11 without errors. Seems that the DUNitX.Loggers.GUIX.fmx file is not compatible with newer versions. The version bundled with Delphi seems ok. Not sure if only this, but see image of diff below: image

I'm not sure how we could/would support many versions of a .fmx file... 😕

EMBBlaster avatar Jan 14 '22 17:01 EMBBlaster

On the page https://github.com/VSoftTechnologies/DUnitX in Readme it's feel like any own GUI is deprecated here, in favor of using TestInsight (https://bitbucket.org/sglienke/testinsight/wiki/Home)

Nashev avatar Jul 12 '23 08:07 Nashev

That might well be, but it won't enable you to run the tests on an Android device I guess. So if you want to test for any specific anomalies there you're out of luck. Am I right?

MHumm avatar Jul 12 '23 08:07 MHumm

Seems to possible run tests on Android and simultaneously look results at Delphi IDE plugin from TestInsight: https://en.delphipraxis.net/topic/645-running-unittests-for-mobile-devices/?tab=comments#comment-4940

Nashev avatar Jul 12 '23 08:07 Nashev