[Gambas-user] Coming back to gb.test

Christof Thalhofer chrisml at deganius.de
Sun May 10 09:33:57 CEST 2020


Am 09.05.20 um 20:57 schrieb Benoît Minisini:

> The problems should be fixed in the last commit.

Nope.

Please update your Gambas and then unpack
unittesthelloworld-0.0.9.tar.gz
anywhere on your computer. Open it with Gambas3.

Edit TestHello.TestHelloWorld

Add a new assertion, for instance Assert.Equals("hmm", "hmm")

Type:
"Assert."

See that you cannot choose any assertion. There is no autocompletion any
more.

The classes Assert, Test must not be hidden, they are essential for
writing tests! You cannot write test code if these classes are not
visible to the user.

Also we need TestHarness, TestAssertion, TestStats (in future).

--------------------------------------------------------

I find the idea to hide gb.test not good. Instead, I would prefer that a
user could choose the gb.test component as usual and that the IDE
changes its behavior when gb.test is enabled and displays the
appropriate controls.

Also we need an unhidden gb.test later for future usage. TestHarness
will provide functionality that users can write their own testing
environment. This would be impossible it it was hidden.

*gb.test is a testing framework*. If it is hidden, it is crippled and
hardly usable any more.

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/20200510/c904ef0b/attachment.sig>


More information about the User mailing list