[Gambas-user] Tap parser in gb.test

Christof Thalhofer chrisml at deganius.de
Thu May 14 17:05:04 CEST 2020


Hi Benoît,

Am 14.05.20 um 13:05 schrieb Benoît Minisini:

> If it had been public, I would have been able to use it in the IDE to 
> plug it to the test output and replace the unit test terminal by a 
> better presentation.

I wrote the form last night and this morning. It lacks support for
translation (I am not familiar with it, sorry) and support for keyboard.

I want it to be very fast:

So that one can open it with Alt-D-D, then choose a testsuite with the
arrow keys (not done yet), then hit Esc and F4 and then the test runs.

On my computer if I hit F4 the Unittests console does not open but just
flicker when the IDE is started new. But I want to see it instantly.

As for the test result:

In my daily work with a lot of tests I like the TAP output very much and
it's summary at the end gives me all I need (it lacks a few things which
I will write in taskell). The most important things stand at the end:
PASSED or FAILED and what failed, if then.

To be able to watch the TAP output is important in two cases (these are
the things that come to my mind spontaneously):

1) If tests need some time. Then you are happy if you see the processing
of the ok ... ok ... ok because you'll know it's not stuck.

2) If you step through your tests while writing test code. If you wrote
5 assertions at once you want to see TAP ok..ok..ok.. while stepping
through.

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

So please: Before you think of hiding the "machinery" of gb.test and TAP
and so on, work a little with it. Write a couple of tests for important
parts of Gambas and Gambas components and get familiar with it. After a
while you will see, that the current implementation gives you fast
access and a lot of information that you don't think is important right
now but wouldn't want to miss later.

Again and again I fear that important parts are hidden because their
importance for the daily work is not seen properly.

So please work with it.

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/20200514/5d1d3731/attachment.sig>


More information about the User mailing list