Why think unit tests should be in their own source code hierarchy instead of side-by-side

Dmitry Olshansky dmitry.olsh at gmail.com
Thu Mar 22 18:45:03 UTC 2018


On Thursday, 22 March 2018 at 10:59:56 UTC, Atila Neves wrote:
> Blog post:
>
> https://atilanevesoncode.wordpress.com/
>

Agreed on most counts though I’d say D simply produced a language 
without regard for build tools and large projects. Many small 
annoying things like version(unittest) stem from that fact.

In addition I think many things could easily take a ton of time 
to compile and run tests. ctRegex is one such monster. 
Inadvertently pluging that into somebody else unittest build 
would be murder ;)

It’s a given in some other languages that you need some library 
support to write tests (sometimes any tests) so they usually have 
cleancut prod dependecies and test dependencies. Our unitest 
being built-in practically forces the style.

> Atila




More information about the Digitalmars-d-announce mailing list