[Gambas-user] Merge request for gb.test

Christof Thalhofer chrisml at deganius.de
Wed Sep 11 18:51:52 CEST 2019


Am 11.09.19 um 14:26 schrieb Tobias Boege:
> On Wed, 11 Sep 2019, Christof Thalhofer wrote:
>> To create a plan before testing ("1..X") – this is currently
>> impossible in the way Perl does it – it would be necessary to count
>> every occurrence of "Assert." in a test method.
> 
> Perl doesn't (can't) do that either.

Ups, I didn't know that. Thanks for clarification.

> It is a simple parity test *for your test*.

Ok, this argument is valid! I never thought about it in that way.

If the programmer forgot to increment the number of tests, the next test
run will tell him that it was wrong.

I think this could easily be implemented as an option with a public
constant per test class.

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/20190911/a4ccd575/attachment.sig>


More information about the User mailing list