Low level unit test library in druntime

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 1 09:38:15 PDT 2016


On 09/01/2016 07:17 PM, ZombineDev wrote:
> On Thursday, 1 September 2016 at 12:06:21 UTC, Dicebot wrote:
>> On 08/31/2016 01:01 PM, Atila Neves wrote:
>>> And never mind that any such low level library would suffer from the
>>> same problem unit-threaded did until dub fixed it: D can't reflect on
>>> packages so a program must be written that explicitly lists all
>>> modules that need to be looked at.
>>
>> I don't even think fixing package reflection would truly help here
>> because there exist legit D projects that don't transitively import
>> all modules from `main` and recursive compile-time visiting of all
>> symbols would miss them.
>>
>>> [snip]
> 
> Not a problem, since you can do things like this:

It is exactly _THE_ problem. You can't have the imaginary test runner to
reliably find all tests automatically, at least all compiled modules
have to be listed explicitly. This is not good, thus I am inclined to
call extending RTTI an only viable long-term solution.


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


More information about the Digitalmars-d mailing list