[Gambas-user] Test Module, First try

Christof Thalhofer chrisml at deganius.de
Sun Jul 19 11:37:59 CEST 2020


Am 19.07.20 um 10:31 schrieb Brian G:

> I understand it should bail if a test disappears, It would be nice if it
> told you how to fix the issue when you really do want to delete a test.

> Like I had to hunt around, experiment to find a way to fix it. The
> default had to be reset.  By opening iand closing the test suite.

If I delete a testmodule with the name 'TcMMainFunctions' which I
defined to be called in a testsuite and then hit F4 the system says:

"Bail out! Cannot load class 'TcMMainFunctions'"

Yes, if I do not remember that I deleted 'TcMMainFunctions' this might
be confusing and I have a problem.

But: "Cannot load class" comes from the interpreter which crashed
because of that. The test system itself detects a crash of the
interpreter and reports that with "Bail out!" and the error message of
the interpreter.

There is no layer between it and the interpreter which does jobs the
interpreter has to do (for instance check the existence of classes or
report the non-existence). The reason is: This would add more complexity
and with that came more possibility for failures of the test system
itself. We want to keep it as stable and as concise as possible.

And btw. If you delete any class in a program which is called by another
part of your program and hit F5 the IDE says: "Cannot load class ...".
Here it is the same, the IDE reports the error message of the interpreter.

A testsuite can be seen as a program, which is defined by you  and has
to be executed. If it calls parts which do not exist the interpreter
crashes.

So at this point you might get a bit more familiar 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/20200719/40b7f804/attachment.sig>


More information about the User mailing list