[Gambas-user] gb.test

Christof Thalhofer chrisml at deganius.de
Tue Mar 10 10:30:05 CET 2020


Hello,

> Am 06.03.20 um 09:35 I wrote:
> 
>> in master there are now gb.test and gb.test.tap. These two play well
>> together as far as I can see. But a part of the functionality has
>> disappeared and must therefore be restored:
> ...
>> Who wants to restore it? Should I do it?
> 
> Ok, I will do it now in master.

As I now work with the current state of gb.test I see that much more
functionality is broken now.

We should have fixed that in the gb.test.tap branch before integrating
it into master! Why is this broken thing in master now ????

Explanation:

I wrote tests to test gb.test itself. Part of these tests now fail and
even cannot be debugged any more.

In gb.test TestFailures.test has 11 Asserts that have to report "not ok".

Currently it crashes immediately. Even if I try to fix it with

>     Try Object.Call($MyTestModule, Me.name)
>     If Error Then
>         Assert.NotOk(True, "Error in " & $MyTestModule.Name & ": " & Error.Text)
>     Endif

in TestCase.Run()

only 7 of 11 Asserts report "not ok", the other ones disappear ... but
why???

If I want to find that out, I am not able to step through it any more,
because the Assert class is not in gb.test any more.

Also I cannot see which test is done while stepping through, because the
output to stdout is gone.

So it is now fundamentally broken!

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

I appreciate it when the functionality is improved, but I get really
angry when it gets broken! While I was programming this thing, I used to
make a lot of mistakes and wrong decisions, but I fixed that and wrote
extra tests to make sure it would not happen again. These tests have to
be fulfilled, otherwise it is broken.

I stop working on it until these failures are fixed.

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/20200310/9e584a97/attachment.sig>


More information about the User mailing list