https://issues.dlang.org/show_bug.cgi?id=18623
greenify <greeen...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |greeen...@gmail.com --- Comment #1 from greenify <greeen...@gmail.com> --- I agree though the compiler currently doesn't know whether the test is ddoc-ed when -D isn't passed. As it throws away all documentation text during parsing. For Phobos we use a workaround which extracts all public tests and puts them in separate files and then executes them: https://github.com/dlang/tools/blob/master/tests_extractor.d --