VSoftTechnologies / DUnitX

Delphi Unit Test Framework
Apache License 2.0
384 stars 203 forks source link

DUnitXFiremonkeyGUI_D10Tokyo.dproj example crashes in 10.3 Rio #230

Open MHumm opened 5 years ago

MHumm commented 5 years ago

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.

vincentparrett commented 5 years ago

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

MHumm commented 5 years ago

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

bernd5 commented 3 years ago

I can confirm the crash (still in 10.4)

EMBBlaster commented 2 years ago

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... 😕

Nashev commented 1 year ago

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)

MHumm commented 1 year ago

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?

Nashev commented 1 year ago

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