I've created a multi-platform leak checking library with DUnit integration and per test memory leak details (basically FastMM full debug report but per test) and instance cycle detection (analyzes managed fields of your object graph and tells you where your instances create cycles).
I've created a multi-platform leak checking library with DUnit integration and per test memory leak details (basically FastMM full debug report but per test) and instance cycle detection (analyzes managed fields of your object graph and tells you where your instances create cycles).
https://bitbucket.org/shadow_cs/delphi-leakcheck/
https://bitbucket.org/shadow_cs/delphi-leakcheck/
Sounds awesome! I will check it out :)
ReplyDeleteUsing xe install OK.
ReplyDeleteIni Ok
TestInsight.Client, ok
TestInsight.DUnit, Ok
RunRegisteredTests; Ok
View Testinsight explorer Ok
How do you register what kind of test?
No output. Any help will do.
No using information
Thanks.
P.s Once activating the explorer you can not DEACTIVATE.
ReplyDeleteEven if i took of
TestInsight.Client,
TestInsight.DUnit,
RunRegisteredTests; explorer is still active !!!
shlomo abuisak I just pushed XE support. Follow the readme guide and also follow TI readme how to enable the tests. Quick hint: you need to define TESTINSIGHT conditional. Also see the attached test projects for your version of Delphi (including project options). On Windows you can always use GUI test runner and enable leak reporting from there. Just make sure you include all units. Let me know if there are any inconsistencies in the readme I'll try to update it to make it even clearer.
ReplyDeleteHonza Rameš
ReplyDeleteI down loaded shadow_cs-delphi-leakcheck-6b5f34e211c1.zip
In it there is No xe Demo. Only xe6 or xe7.
TestInsight directory dose not help either.
It will be nice to see a working XE test.
Now a days people work even before <7
Pushing only xe6 or xe7 dose not help most of the community.
P.S i still work under 7 too.
Thanks
shlomo abuisak You need to use commit c391e49 (I did some rebasing which could screw with anyone's history if you already cloned) or later there should be Test/XE folder containing the project you're asking for. When I started the project I needed to test the functionality fist then I added older Delphi support. You can see a lot of refactoring in the commit. I'd also like to ask anyone to test on other Delphi version not mentioned in the readme and drop a comment on the progress (using XE project for all other Delphi should work)... Thanks
ReplyDelete