Breaking changes in Visual C++ 2015
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Fri May 8 17:25:08 PDT 2015
On 5/8/15 3:58 PM, Walter Bright wrote:
> On 5/8/2015 2:51 PM, deadalnix wrote:
>>> 1. unit testing
>> The way D runs tests before running the app does not make any sense.
>
> It works perfectly fine and obviates the need to create a separate test
> harness.
>
>
>> The way you can't run them for a module without a main makes no sense.
>
> dmd foo -unittest -main
>
>
>> The way you end runnign all kind of test with the ones you are
>> interested in makes no sense.
>
> dmd std/path -unittest -main
>
> runs just the unit tests in std/path. You can run tests in some modules,
> but not others, with:
>
> dmd -c a b c -unittest
> dmd d e f a.o
> ./d
The issues with unittests are legit, albeit fixable. It's goofy to run
the program after unittests, and unittests should have names that can be
introspected, selected etc. I couldn't find much merit with the rest of
the list. -- Andrei
More information about the Digitalmars-d
mailing list