[Gambas-user] gb.test

Christof Thalhofer chrisml at deganius.de
Mon Dec 30 19:12:15 CET 2019


Hi,

just started a merge request for the last incarnation of gb.test in Gambas:

https://gitlab.com/gambas/gambas/merge_requests/120

Please Benoît, can you have a look at it? You said, that you don't like
some things in gb.test ... could you be more specific so that I am able
to work on it?

One unresoved problem is: Testclasses (which inherit UnitTest) in any
project have to be exported.

The method Unittest.GetAllTestContainerNames() searches for Testclasses
but does not find them *as long as gb.test is a component*. Could you
please have a look at the code and comment there?

You can see it if you unpack unittesthelloworld-0.0.3.tar.gz and let it
run, for example:

christof at tof-x230 ~/programming/gambas/deganius/unittesthelloworld »
gbx3 -s _TestHello 2>/dev/null
ok 1 - Test Hello.FortyTwo
ok 2 - Test equal strings just for fun
ok 3 - HW strings should be equal
not ok 4 - Test Hello.Right will go wrong
# In _TestHello:TestRight
# Failed tests: 4
1..4
# ------- No success!  -------

If the testfile is not exported it is not found:

christof at tof-x230 ~/programming/gambas/deganius/unittesthelloworld »
gbx3 -s _TestHello 2>/dev/null
0..0
# ------- No success!  -------

Have a good New Year, everybody!

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/20191230/72e2dfc4/attachment.sig>


More information about the User mailing list