[Gambas-user] Crash with latest version

Jussi Lahtinen jussi.lahtinen at gmail.com
Sun Mar 7 20:24:42 CET 2021


> Not always. In a test module every method is a test and will be
> executed, except it's name starts with '_'. As long as we can move the
> methods to 'GambasSelftests' and refactor their names to use a heading
> underscore, we could do that. But I think it would make
> 'GambasSelftests' even more confusing. Basically I'm fine with a
> testmodule that contains only tests.
>

I think at least the duplicate code should be removed.



> This:
>
> > ... 'lot of code
> > sDescription = "Test If False"
> > ... 'lot of code
>
> Would become:
>
> > Public Sub TestIfFalse()
> > ' small amount of code
> > ' with appropriate assartions
> >
> > End
>

Yes, a lot of work... I'm not sure how much I will be able to contribute. I
knew some rabbit holes would emerge...
I'm not familiar with taskell, let's see how things work out.



> Also the global variables in GambasSelftests are confusing. Are they
> really necessary?
>

I'm afraid they are. In history there have been cases where bugs are
specific to global variables.
It is very hard to make code look clean, if it tests everything, even
non-clean cases.



>  We can ask Benoît to give us a hint how to get a list of all commands in
> the Gambas language. How it is done in the Wiki? By hand? Really?
>

Good idea. Benoit?


This is the first problem we should solve before we try to refactor all
> the mess.
>

I agree.



> Hmm ... how can we achieve that this is done automatically?
>

Maybe this should be left to the make file? Or how the test automation is
done?


Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20210307/757ff3a5/attachment.htm>


More information about the User mailing list