[Gambas-user] Test Module, First try

Christof Thalhofer chrisml at deganius.de
Sat Jul 18 14:40:25 CEST 2020

Am 18.07.20 um 11:19 schrieb Brian G:

> Point out the error of my way!

I see a design flaw:

'TaSetupForAllTests' is not really a test. Is tests nothing but creates
an environment.

If you want to do sth like that it is better to create a helper
module/method and call that in each testmodule via _Setup() individually.

So you can ensure that the environment is already created even when you
run a single testmethod in a separated testsuite.

Look at the project I have attached.

Alles Gute

Christof Thalhofer

Dies ist keine Signatur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gbs3-3.15.90.tar.gz
Type: application/gzip
Size: 37188 bytes
Desc: not available
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20200718/ca3a15e6/attachment-0001.gz>
-------------- 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/20200718/ca3a15e6/attachment-0001.sig>

More information about the User mailing list