[Gambas-user] Using test interface for scripter testing

Brian G brian at westwoodsvcs.com
Sat Jun 27 15:29:18 CEST 2020


Certain types of tests could produce a security risk if left as part of a production app. I think if they are global and the app allows user plugins.
--
Thanks
Brian Wednesday, 24 June 2020, 02:16AM -07:00 from Christof Thalhofer  chrisml at deganius.de :

>Am 23.06.20 um 09:56 schrieb Benoît Minisini:
>
>> If yes, consider opening a feature request. I vaguely remember everyone
>> agreeing that tests should *not* be included in "production" things.
>
> Mmm... yes I didn't really think about that.
>
> At the moment, test modules are included in the executable as any other 
> classes.
>
> It allows to test the executable using the '-T' interpreter option.
>
> But on the other hand you are providing your tests to the final user in 
> an executable bigger thant it should be. Maybe not a wanted thing...
>
>I think the testclasses do no harm. In an average project they are
>small. And it they exist they provide the benefit to test the executable
>on a machine in production later.
>
>For me I see no reason to remove them by default.
>
> I guess I should add one more option!
>
>Yes, sure, why not.
>
>Alles Gute
>
>Christof Thalhofer
>
>-- 
>Dies ist keine Signatur
>
>
>----[  http://gambaswiki.org/wiki/doc/netiquette ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200627/9fa27372/attachment.html>


More information about the User mailing list