[Gambas-user] gb.test and gb.test.tap
Christof Thalhofer
chrisml at deganius.de
Fri Mar 6 11:06:46 CET 2020
Am 06.03.20 um 09:52 schrieb Benoît Minisini:
> Is there a reason why 'gb.test.tap' is compiled before 'gb.test'? (see
> 'comp/src/order')
>
> It seems not logical, unless these two components are completely
> independent?
We will have to rethink dependencies ...
(please forget my Flowchart)
This is what I think now, IMO:
* gb.test should contain Assert.
* Assert should be a module not a class
(we do not need an object being Assert).
* gb.test.tap should contain gb.test as component
and should provide its Unittest() like that:
Unittest(Tests as String, Optional Values ... )
The variable "Tests" is a comma separated string
of testmodules and testmethods.
Because:
Maybe we later want to have another output module for testing instead of
gb.test.tap? Imagine things like that:
gb.test.db -> writes test output into a database
gb.test.log -> hands over to syslog
gb.test.monitor -> hands over to a monitoring system
gb.test.csv -> writes tests output to a csv file
Or someone can write it's own testing system.
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/20200306/3badfe8e/attachment.sig>
More information about the User
mailing list