[Gambas-user] Using test interface for scripter testing
brian at westwoodsvcs.com
Sat Jun 27 15:35:43 CEST 2020
Does that not defeat the purpose of testing the the app for production use. Ie checking if correct errors are generated by error conditions etc. Have to alter code, then not test the actual method or module that outputs them.... Ummm
Brian Monday, 22 June 2020, 11:29PM -07:00 from Christof Thalhofer chrisml at deganius.de :
>Am 23.06.20 um 00:00 schrieb Brian G:
> I am including a sample app with test module for things I will need
> to do my testing. As you suggested I am capturing printed output,
> which works, but also seems to print into the test result file.
> Is there some better way to use test to test functions which produce
> printed messages.
>Use a function that creates the message as string and test the output of
>And then use that function in a method that prints.
>Dies ist keine Signatur
>----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User