<HTML><BODY><p style="margin-top: 0px;" dir="ltr">I see your point about the text strings, I added the german and french translations after I wrote the tests, oh well once more into the frey....</p>
<p dir="ltr">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. </p>
<p dir="ltr">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.<br><br></p>
<div id="mail-app-auto-default-signature">
<p dir="ltr">--<br> Thanks<br> Brian</p>
</div>Sunday, 19 July 2020, 00:52AM -07:00 from Christof Thalhofer <a href="mailto:chrisml@deganius.de">chrisml@deganius.de</a>:<br><br><blockquote id="mail-app-auto-quote" cite="15951451320000019070" style="border-left:1px solid #0878BD; margin:0px 0px 0px 10px; padding:0px 0px 0px 10px;">
<div class="js-helper js-readmsg-msg">
<style type="text/css"></style>
<div >
<base target="_self" href="https://e-aj.my.com/" />
<div id="style_15951451320000019070_BODY">Am 19.07.20 um 00:58 schrieb Brian G:<br>
<br>
> I attach the final...hopefully acceptable style wise version!<br>
<br>
On my machine some tests fail, I attach the TAP output. It is because<br>
tests search for language agnostic strings which is not a really good idea:<br>
<br>
> # ------------- Expected -------------<br>
> # gbs3: Dim i as integer:Print i:inc i.0: Unknown component: gb.inotifyt<br>
> #<br>
> # ---------------- Got ---------------<br>
> # gbs3: Dim i as integer:Print i:inc i.0: Unbekannte Komponente: gb.inotifyt<br>
> # ------------------------------------<br>
<br>
Also you do not test for the existence of the bad component but instead<br>
for a string message. Apart from the language problem your test will<br>
fail if someone decides to change the message later, for instance<br>
'Unknown component' to 'Component not found', which is not what you want!<br>
<br>
I did not inspect all of your tests but please ask yourself:<br>
<br>
"Do I really test the state of my program that I want to test? Or do I<br>
test something other which is influenced by the state that I really want<br>
to test."<br>
<br>
In the latter case you cannot rely on your tests!<br>
<br>
> When I delete a test module, the default or any other test suite does<br>
> not recalculate itself, It will crash BailOut , because the test is<br>
> missing, It is required to use shift-F4 to enter the default plan <br>
> then exit it. This corrects the issue.<br>
><br>
> Is it possible to fix this so that it is automatic and it detects<br>
> that a test is missing and give opportunity to fix or bail?<br>
><br>
> Its not intuitive from the message what needs to be done to fix the<br>
> issue.<br>
<br>
IMO this is not a bug. The test system has to bail out if a test is<br>
called which does not exist. It says to you that sth is wrong and you<br>
have to fix it. This is the real job the test system has to do.<br>
<br>
One thing I saw in the TAP output I personally would avoid:<br>
<br>
> Test TbCommandLinePrograms:ExecuteACommandLineProgram<br>
> # Application Output<br>
> # We say Hello World<br>
> # 0<br>
> # 1<br>
> # 2<br>
> # <br>
> ok 1 - Check the output from the Executed command line script<br>
> 1..1<br>
> ok 2 - TbCommandLinePrograms:ExecuteACommandLineProgram<br>
<br>
These notes are nice if you are debugging your program as well as the<br>
test code. But if it is done and the test reports 'ok', get rid of it:<br>
<br>
> Test TbCommandLinePrograms:ExecuteACommandLineProgram<br>
> ok 1 - Check the output from the Executed command line script<br>
> 1..1<br>
> ok 2 - TbCommandLinePrograms:ExecuteACommandLineProgram<br>
<br>
Sometimes you want to read the TAP output (if you are looking for<br>
failures) and then you will be focused on searching notes beginning with<br>
"# " which will tell you what failed.<br>
<br>
Then notes which tell sth obvious will annoy you:<br>
<br>
> Test TbCommandLinePrograms:Precompile<br>
> # Testing PreCompile<br>
> ok 1 - Test precompile short forms I<br>
> ok 2 - Test precompile short forms F<br>
<br>
Have a nice sunday! :-)<br>
<br>
Alles Gute<br>
<br>
Christof Thalhofer<br>
<br>
-- <br>
Dies ist keine Signatur<br>
</div>
<div><br>
----[ <a href="http://gambaswiki.org/wiki/doc/netiquette" target="_blank" >http://gambaswiki.org/wiki/doc/netiquette</a> ]----<br>
<br>
</div>
<base target="_self" href="https://e-aj.my.com/" />
</div>
</div>
</blockquote></BODY></HTML>