[Gambas-user] Coming back to gb.test

Benoît Minisini g4mba5 at gmail.com
Sun May 10 15:59:32 CEST 2020


Le 10/05/2020 à 09:33, Christof Thalhofer a écrit :
> 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).

It's fixed in the last commit. It was just a matter of automatically 
loading 'gb.test' information.

> 
> --------------------------------------------------------
> 
> 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.

I disagree. 'gb.test' cannot be explicit, otherwise the component will 
be loaded when not testing, and I don't want the project to be polluted 
by something unneeded.

Regards,

-- 
Benoît Minisini


More information about the User mailing list