Low level unit test library in druntime

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 1 05:02:32 PDT 2016


On 08/30/2016 10:40 PM, Jacob Carlborg wrote:
> On 2016-08-30 18:31, Dicebot wrote:
> 
>> I definitely wouldn't want to use API like you proposed if I was to
>> write my own test runner. Minimal common ground which would be cool to
>> have is getting range/array of all unittest blocks together with their
>> annotations. Anything more than that is optional luxury that specific
>> test systems may define.
> 
> Basically the only thing that would be different in different frameworks :(

What would be different? List of unit test blocks available in the program?

>> And any usage of classes in what is supposed to be a base ground API is
>> immediate "no" for me :)
> 
> Yeah that would be crazy, like threads, fibers, sockets and exceptions ;)

_forcing_ usage of threads, fibers, sockets and exceptions in runtime
outside of their respective modules would be rather outrageous too.
druntime should reasonably simple to port to systems that may not have
any of those - and still degrade gracefully.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20160901/3f5a68ba/attachment.sig>


More information about the Digitalmars-d mailing list