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

Jacob Carlborg doob at me.com
Thu Mar 22 15:18:40 UTC 2018


On Thursday, 22 March 2018 at 11:00:31 UTC, Atila Neves wrote:

> Direct link:
>
> https://atilanevesoncode.wordpress.com/2018/03/22/keep-d-unittests-separated-from-production-code/

I completely agree. Although my reason is mostly because there 
will be too much code in a single file if the regular code and 
unit tests are mixed in the same file. Also, having 
utilities/helpers only used by the tests is easier, or easier to 
find a location for.

--
/Jacob Carlborg


More information about the Digitalmars-d-announce mailing list