[Gambas-user] Merge request for gb.test
Christof Thalhofer
chrisml at deganius.de
Wed Sep 11 12:51:39 CEST 2019
Am 11.09.19 um 00:49 schrieb Benoît Minisini:
> Did you see that 'gb.util' adds a Class.Stat() static method that allows
> to get some information about any project class without loading it? With
> that you should be able to get all classes that inherits UnitTest.
Yes I've tried that a year ago. If you look at the code in
UnitTest:GetAllTestContainerNames here:
> ' FIXME: Class.Stat(sName).Parent = "UnitTest" if included as component
> ' This does not work if gb.test is included as component
> ' If Class.Stat(sName).Parent = "UnitTest" Then
> ' GoSub AddClass
> ' Endif
Alles Gute
Christof Thalhofer
--
Dies ist keine Signatur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190911/d126c3ce/attachment.sig>
More information about the User
mailing list